GATE Computer ScienceHardGATE CS (PYQ pattern)

A 16 KB direct-mapped write-back cache has 32-byte blocks; every line stores its data, its tag, one valid bit and one dirty bit, and nothing else. The total storage is 141,312 bits. How much physical memory can the addresses reach?

  1. A. 4 GB
  2. B. 16 GB
  3. C. 8 GB
  4. D. 128 MB

Correct answer: A. 4 GB

Lines = 16 KB / 32 B = 512, so each line has 141,312 / 512 = 276 bits = 256 data + 2 status + 18 tag. Index = log₂ 512 = 9, offset = 5, so the address is 18 + 9 + 5 = 32 bits → 4 GB. Forgetting both status bits gives a 20-bit tag (16 GB); forgetting only the dirty bit gives 8 GB; leaving out the offset gives 2²⁷ B = 128 MB.

More Computer Organization and Architecture questions

Exams that ask this topic