Consider a direct mapped cache with 64 blocks and a block size of 16 bytes. To…
2011
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
- B.
6
- C.
11
- D.
54
Attempted by 142 students.
Show answer & explanation
Correct answer: C
First, calculate the memory block index by dividing the byte address by the block size: 1206 ÷ 16 = 75. Then, find the cache block number by taking the memory block index modulo the total number of blocks: 75 mod 64 = 11. The byte address maps to block number 11.
A video solution is available for this question — log in and enroll to watch it.