GATE Computer ScienceModerateGATE CS (PYQ pattern)

A 32 KB cache with 64-byte blocks and 36-bit physical addresses is 4-way set-associative. If the associativity is doubled (8-way) while the cache size and block size stay fixed, which statement about the address breakdown and hardware is correct?

  1. A. The index loses one bit, the tag gains one bit, and 8 tag comparators are needed per access
  2. B. The offset loses one bit, the tag gains one bit, and 4 comparators remain enough
  3. C. The index and tag stay the same; only the replacement logic grows
  4. D. The index gains one bit, the tag loses one bit, and 8 tag comparators are needed per access

Correct answer: A. The index loses one bit, the tag gains one bit, and 8 tag comparators are needed per access

Number of sets = size/(block·ways) halves, so the index shrinks by one bit and the tag grows by one; all 8 ways of the selected set are compared in parallel. The offset depends only on the block size.

More Computer Organization and Architecture questions

Exams that ask this topic