GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A 128-byte, 2-way set-associative cache with 16-byte blocks and LRU replacement is empty. The processor reads these byte addresses in order: [4, 36, 68, 100, 4, 132, 36, 68, 164, 4, 196, 36]. How many of the 12 reads hit?
- A. 5
- B. 4
- C. 2
- D. 3
Correct answer: D. 3
Block = ⌊addr/16⌋, set = block mod 4. Tracking each set's LRU order gives 3 hits (FIFO would give 3; direct-mapped 3).
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A process maps 100 separate regions, each 1 MB + 4 KB long and each starting on a 2 MB boundary (1 MB = 1024 KB). With 4 KB pages, how…
- A 48-bit virtual address space uses 4 KB pages and a 4-level page table in which every table is one 4 KB page of 512 eight-byte entries (9…
- A virtually indexed, physically tagged L1 cache is 64 KB, 8-way set-associative with 64-byte blocks, and pages are 4 KB. In how many…
- A 64M × 8 DRAM chip uses multiplexed row/column addressing with a square cell array. How many address pins does the chip need (excluding…
- A 16-bit instruction format has 4-bit address fields and expanding opcodes. 14 three-address instructions, 30 two-address instructions and…
- A cache with 4 ns access backs a 120 ns memory. Find the minimum hit ratio for an average access time of at most 14 ns (a) when memory is…