CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

The main memory of a computer has 2 cm blocks while the cache has 2 c blocks. If the cache uses the set associative mapping scheme with 2 blocks per set, then block 'k' of the main memory maps to the set.

A
(k mod 2 cm) of the cache
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
(kmodc) of the cache
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
(kmodm) of the cache
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
(kmod2c) of the cache
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B (kmodc) of the cache

​​​​​# of set in set associative cache

=#of blocks in cache# of blocks in one set

=2c2=c

# of sets in cache =c

Therefore, the block 'k' of the main memory maps to the set kmodc of the cache.

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Delhi Under the Mughal Rule
HISTORY
Watch in App
Join BYJU'S Learning Program
CrossIcon