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)?
- A. 561152
- B. 552960
- C. 551936
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A disk has 4 platters. Both surfaces of every platter hold data except the top surface of the top platter and the bottom surface of the…
- A control store holds 1024 microinstructions. In horizontal form each word has one bit for each of 60 control signals, a 10-bit…
- A 5-stage pipeline has forwarding from EX/MEM and MEM/WB to the ALU inputs and also from MEM/WB to the data input of a store in MEM. The…
- A process has three segments of 102,400 B (code), 61,440 B (data) and 20,780 B (stack). Each segment is allocated separately in whole…
- 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…
- In a 32-bit ripple-carry adder every full adder produces its carry-out 2 gate delays after its carry-in (inputs a and b are available at t…