Consider a direct mapped cache with 64 blocks and a block size of 16 bytes. To what block number does the byte address 1206 map to
(A) does not map
Block size = 16 B Memory block number = Byte Address / Block size = 1206/16 = 75.3 The given byte address i.e. 1206 is a part of 75th block. Cache block number = (Memory block number) mod (number of blocks in cache) = 75 mod 64 = 11
Option (C) is correct.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.