UGC NET Paper 2 (Computer Science)Very hard

A cache is 64 KB in total, 2-way set associative, with 32-byte blocks and a 32-bit address. The number of tag bits is:

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

Correct answer: A. 17

Sets = 65536/(2 x 32) = 1024, so the index is log2(1024) = 10 bits and the offset is log2(32) = 5 bits, leaving 32 - 10 - 5 = 17 tag bits.

More UGC NET Computer Science and Applications questions

Exams that ask this topic