GATE Computer ScienceHardGATE CS (PYQ pattern)
A 256 KB, 8-way set-associative write-back cache has 64-byte blocks and 36-bit physical addresses. Each line stores its data, tag, a valid bit and a dirty bit; each set also stores tree pseudo-LRU replacement bits (the minimum for a binary tree over 8 ways). What is the total number of storage bits?
- A. 2,199,552
- B. 2,191,360
- C. 2,194,944
- D. 2,220,032
Correct answer: C. 2,194,944
4096 lines, 512 sets → 9 index bits, 6 offset bits, tag = 36 − 15 = 21. Per line 512 + 21 + 2 = 535 bits → 2,191,360. Tree PLRU over 8 ways needs 7 bits per set: 512 × 7 = 3584. Total 2,194,944. Exact LRU (⌈log₂ 8!⌉ = 16 bits per set) gives 2,199,552; storing 7 bits per line gives 2,220,032.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A system has 44-bit virtual addresses, 4 KB pages and 8-byte page-table entries. Every level of its multi-level page table except the top…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) has full forwarding (EX/MEM and MEM/WB to the ALU inputs), so only a load followed…
- A write-through, no-write-allocate data cache sends every store to memory. 10% of instructions are stores and 20% are loads (load miss…
- A zero-address stack machine evaluates the expression (a + b) × (c + d) + (e + f) × (g + h) with every operator commutative, so the…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) has no forwarding and no split-cycle register file: a value written in WB can be read in…
- A memory has 8 low-order interleaved banks (bank = address mod 8). A bank is busy for 6 cycles after starting an access; the processor can…