A 5-stage pipeline executes 100 instructions with 10 stall cycles. Total clock cycles required?
A 5-stage pipeline executes 100 instructions with 10 stall cycles. Total clock cycles required?
Answer
114
Theory
Total cycles = (k + n − 1) + stalls, for k-stage pipeline and n instructions.
Solution
(5 + 100 − 1) + 10 = 104 + 10 = 114 cycles.