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

  1. A.

    does not map

  2. B.

    6

  3. C.

    11

  4. 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.

Explore the full course: Isro