GATE Computer ScienceHardGATE CSE
A direct-mapped cache has 8 one-word lines (line = address mod 8) and starts empty. The word addresses 0, 1, 2, 3, 0, 8, 1, 9, 0, 8, 2, 16, 1, 8 are accessed in order. How many accesses are hits?
- A. 3
- B. 4
- C. 5
- D. 2
Correct answer: A. 3
Addresses 0, 8, 16 conflict on line 0 and 1, 9 on line 1, so most re-references miss; simulating gives 3 hits.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- 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…
- 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…