GATE Computer ScienceHardGATE CS (PYQ pattern)
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 immediately followed by a dependent instruction (1 stall each). 20% of instructions are branches; the machine predicts not-taken and every taken branch costs 3 cycles. What fraction of branches is taken, and what would the CPI be with predict-taken (1 cycle per taken branch, 3 per not-taken branch)?
- A. 66.7% taken; CPI 1.43
- B. 50% taken; CPI 1.40
- C. 60% taken; CPI 1.46
- D. 50% taken; CPI 1.50
Correct answer: D. 50% taken; CPI 1.50
1.40 = 1 + 0.25 × 0.4 × 1 + 0.2 × 3t → 0.30 = 0.6t → t = 0.50. Predict-taken: 1 + 0.10 + 0.2 × (0.5 × 1 + 0.5 × 3) = 1.50, worse at this taken rate. Forgetting the load stalls gives t = 66.7%.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- 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…
- Over 1000 memory references, 40 miss in L1 and 20 of those also miss in L2. L1 hit time is 1 cycle, L2 hit time 10 cycles, and memory adds…
- Radix-2 Booth recoding of an 8-bit multiplier performs one add or subtract at each change between adjacent bits (with an implied 0 to the…
- A pipeline with ideal CPI 1 handles branches (frequency 20%, of which 40% are taken) in one of three ways: (a) stall for 3 cycles on every…
- A three-word memory-to-memory instruction ADD @A, B (opcode word, address word A, address word B) computes M[B] ← M[M[A]] + M[B], where @A…
- A quad-core chip gives each core a 32 KB L1 instruction cache, a 32 KB L1 data cache and a 256 KB private L2; all cores share an 8 MB L3…