GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A 64 KB, 4-way set-associative write-back cache uses 64-byte blocks and 40-bit physical addresses. Each line also stores one valid bit, one dirty bit and its tag (no replacement bits). What is the total number of storage bits of the cache (data + tag + valid + dirty)?

  1. A. 561152
  2. B. 552960
  3. C. 551936
  4. D. 550912

Correct answer: B. 552960

Offset = 6 bits, index = 8 bits, tag = 26 bits. Each of 1024 lines holds 512 data bits + 26 tag + 2 = 540 bits, total 552960. Adding the index bits to the tag, or dropping valid/dirty, gives the other values.

More Computer Organization and Architecture questions

Exams that ask this topic