GATE Computer ScienceVery hardGATE CSE
A direct-mapped cache has 8 lines and block-number mapping line = block mod 8. The following block numbers are accessed in order: 0, 1, 0, 8, 1, 9, 0, 8, 2, 10, 2, 0, 8, 1, 9, 2. How many accesses are misses?
- A. 11
- B. 14
- C. 16
- D. 13
Correct answer: D. 13
Blocks 0, 8 share line 0, blocks 1, 9 share line 1, and blocks 2, 10 share line 2; tracking the resident block in each line gives 13 misses.
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 uses LRU replacement and set = block mod 4. Blocks accessed in order: 1, 5, 9, 2, 6, 1, 5, 3, 7…
- A fully associative cache with FIFO replacement serves the block reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5. How many misses…
- A 16-bit instruction format uses 4-bit address fields and the expanding-opcode technique. There are 13 three-address instructions, 40…
- Two 8-bit two's-complement numbers a and b are added with an 8-bit adder. For how many ordered pairs (a, b), where a and b each range over…
- How many distinct 32-bit patterns represent a NaN (quiet or signalling, either sign) in IEEE 754 single precision?
- Memory has 8 low-order interleaved banks; a bank is busy for 6 clock cycles after starting an access, and at most one new access can be…