GATE Computer ScienceModerateGATE CSE

A 32 KB direct-mapped cache has 64-byte blocks and the processor issues 32-bit byte addresses. How many tag bits does each cache line store?

  1. A. 17
  2. B. 15
  3. C. 19
  4. D. 21

Correct answer: A. 17

Offset = 6 bits, lines = 32 KB / 64 B = 512 so index = 9 bits, hence tag = 32 − 9 − 6 = 17 bits.

More Computer Organization and Architecture questions

Exams that ask this topic