GATE Computer ScienceHardGATE CS (PYQ pattern)
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 store, and how many index bits lie above the 12-bit page offset (so would come from the virtual page number if the cache were virtually indexed)?
- A. 40 tag bits; 2 index bits above the page offset
- B. 32 tag bits; 2 index bits above the page offset
- C. 34 tag bits; 2 index bits above the page offset
- D. 34 tag bits; 0 index bits above the page offset
Correct answer: C. 34 tag bits; 2 index bits above the page offset
Sets = 64 KB/(4 × 64) = 256 → 8 index bits + 6 offset bits = 14 bits. Tag = 48 − 14 = 34. The 14 low bits exceed the 12-bit page offset by 2 bits.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- 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…
- A processor services interrupts with nested priorities: a higher-priority interrupt (larger number) preempts a running lower-priority…
- Radix-4 Booth recoding of the 8-bit two's-complement multiplier 01101110 (value 110) produces four digits in {−2, −1, 0, +1, +2}. Which…
- Three interrupt handlers have no overhead: A (priority 1, arrives at 0 µs, runs 10 µs), B (priority 3, arrives at 4 µs, runs 5 µs) and C…
- A cache access takes 2 ns on a hit; a miss takes 22 ns in total (hierarchical model). The average access time is 5 ns. What is the miss…