GATE Computer ScienceHardGATE CS (PYQ pattern)

An 8 KB cache with 16-byte blocks and 32-bit addresses can be built fully associative or 4-way set-associative. How many more tag bits does the fully associative version store in total, and how many tag comparators does each version need per access?

  1. A. 3,584 more bits; 512 versus 128 comparators
  2. B. 3,584 more bits; 512 versus 4 comparators
  3. C. 4,096 more bits; 512 versus 4 comparators
  4. D. 2,048 more bits; 512 versus 4 comparators

Correct answer: B. 3,584 more bits; 512 versus 4 comparators

512 lines. Fully associative: tag = 32 − 4 = 28 bits. 4-way: 128 sets → 7 index bits, tag = 21. Difference 7 bits × 512 lines = 3,584. FA compares all 512 tags; 4-way compares the 4 tags of one set. 4,096 comes from taking 256 sets (8 bits).

More Computer Organization and Architecture questions

Exams that ask this topic