GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A processor has base CPI 1.2 for non-memory work (60% of instructions) and every load/store (40% of instructions) takes 1 cycle plus memory stalls. The L1 data cache has a 5% miss rate and a 40-cycle miss penalty. Instruction fetch never misses. What is the overall CPI?
- A. 1.92
- B. 2.00
- C. 1.52
- D. 3.20
Correct answer: A. 1.92
CPI = 0.6·1.2 + 0.4·(1 + 0.05·40) = 0.72 + 1.2 = 1.92. Adding the stall to all instructions (1.2 + 0.4·2 = 2.0) double-counts the memory-instruction base cycle of 1.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A device delivers 2,000,000 bytes/s into a 16-byte FIFO and raises an interrupt each time 12 bytes have accumulated. Each interrupt costs…
- A fully associative cache (block = one word) sees the block reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5, starting empty. How many…
- A 5-stage pipeline resolves conditional branches in ID, with forwarding into ID for ALU results but the branch needs its operand at the…
- A branch alternates T, N, T, N, … for 20 executions, starting with T. A 2-bit saturating counter (states 0-3, predicts taken in states 2…
- A 5-stage pipeline with full forwarding has a measured CPI of 1.40 (ideal 1). 25% of instructions are loads, and 40% of loads are…
- A disk spins at 6000 rpm and each track holds 256 KB. A 1 MB file is stored on 4 consecutive tracks of the same cylinder-group; a head…