For a direct-mapped cache, 4 bits are used for the tag field and 12 bits are…

GATE · 2025 · CS · Set 2 · Computer Science & IT

For a direct-mapped cache, 4 bits are used for the tag field and 12 bits are used to index into a cache block. The size of each cache block is one byte. Assume that there is no other information stored for each cache block.

Which ONE of the following is the CORRECT option for the sizes of the main memory and the cache memory in this system (byte addressable), respectively?

  1. A.

    64 KB and 4 KB

  2. B.

    128 KB and 16 KB

  3. C.

    64 KB and 8 KB

  4. D.

    128 KB and 6 KB

Attempted by 426 students.

Show answer

Correct answer: A

The worked solution is available to enrolled students.

Video solution available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…