GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A cache has 64 sets of 4 ways. Exact LRU stores the full recency order of each set using the minimum number of bits; tree pseudo-LRU stores 3 bits per set. How many bits of replacement state does the whole cache need under each scheme, as (exact LRU, tree PLRU)?
- A. (256, 192)
- B. (192, 320)
- C. (320, 192)
- D. (512, 192)
Correct answer: C. (320, 192)
4 ways have 4! = 24 possible orders, so ⌈log₂24⌉ = 5 bits per set: 64 × 5 = 320. Tree-PLRU needs 3 bits per set: 192.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A fully pipelined floating-point adder has latency 4 cycles and can start one addition every cycle; a dependent addition starts only when…
- Two branches share one 2-bit saturating counter (aliasing in a small predictor table): X is always taken, Y is never taken, and they…
- On a processor with base CPI 1.0, the L1 cache has 40 misses per 1000 instructions. Of these, 10 per 1000 instructions also miss in the L2…
- A physically tagged 64 KB, 4-way cache has 64-byte blocks, 48-bit physical addresses and 4 KB pages. How many tag bits does each line…
- In a custom 8-bit floating-point format there is 1 sign bit, 4 exponent bits (bias 7) and 3 fraction bits, with IEEE-like rules (exponent…
- A MIPS-like J instruction has a 26-bit field holding a word address; the target is formed from the top 4 bits of PC + 4, followed by the…