GATE Computer ScienceHardGATE CS (PYQ pattern)
A 64-byte, 2-way set-associative cache with 8-byte blocks and LRU replacement is empty. The processor reads these byte addresses in order: [0, 8, 64, 72, 0, 16, 64, 8, 128, 0, 72, 136, 16, 64]. How many of the 14 reads hit?
- A. 4
- B. 1
- C. 5
- D. 6
Correct answer: C. 5
Block = ⌊addr/8⌋, set = block mod 4. Tracking each set's LRU order gives 5 hits (FIFO would give 5; direct-mapped 1).
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- In IEEE 754 single precision with round-to-nearest-even (every operation rounded to single), which of these are true? I. 0.1f + 0.2f ==…
- An 8-bit data word d1…d8 = 1 0 1 1 0 0 1 0 is stored with a 12-bit single-error-correcting Hamming code: positions 1, 2, 4, 8 hold check…
- A byte-addressed machine has auto-increment (R1)+ (use R1 as the address, then add 4) and auto-decrement −(R1) (subtract 4 from R1, then…
- A fully associative cache holds 4 blocks. A loop cycles through 5 distinct blocks 0,1,2,3,4,0,1,2,3,4,… for 30 references. How many hits…
- In C99, int x = −37 (32-bit two's complement), and this implementation's >> on negative values is an arithmetic shift. What are x / 4, x…
- A non-pipelined processor takes the sum of its stage delays (90, 150, 110, 170, 80, 130 ps) per instruction. Its pipelined version has the…