GATE Computer ScienceHardGATE CSE · NIELIT
A 2-way set-associative cache with 4 sets (set = address mod 4), LRU replacement and one word per line starts empty. The word addresses 0, 4, 8, 0, 4, 1, 5, 0, 8, 4, 1, 9, 5, 0, 4 are accessed in order. How many hits occur?
- A. 4
- B. 5
- C. 2
- D. 3
Correct answer: D. 3
Addresses 0, 4, 8 compete for the 2 ways of set 0 and 1, 5, 9 for set 1; an LRU simulation gives 3 hits.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) has no forwarding; the register file writes in the first half of a cycle and reads in the…
- What decimal value does the single-precision IEEE 754 pattern 0xC1A40000 represent?
- Virtual memory uses a two-level page table. A TLB lookup takes 10 ns with a 90% hit rate, and every main-memory access takes 100 ns. On a…
- An 8-bit instruction format has 3-bit address fields and expanding opcodes. There are 3 two-address instructions and 8 zero-address…
- Booth's algorithm multiplies using the 8-bit multiplier 01101110 (with an implied 0 to the right of the LSB). How many of the 8 steps…
- A microprogrammed control unit has four groups of mutually exclusive control signals containing 15, 7, 31 and 3 signals; each group is…