Question
Consider a non-pipelined processor with a clock rate of and average cycles per instruction of four. The same processor is upgraded to a pipelined processor with five stages; but due to the internal pipeline delay, the clock speed is reduced to . Assume that there are no stalls in the pipeline. The speed up achieved in this pipelined processor is _____.
Official answer and solution
- Official answer
- 3.2
- From
- Official GATE 2015 answer key
Solution
Compute instruction execution time in non-pipelined and pipelined processors to find speedup.
-
Non-pipelined processor:
- Clock frequency Clock cycle time .
- Average cycles per instruction .
- Execution time per instruction:
-
Pipelined processor:
- Upgraded to 5 stages with clock frequency .
- With no stalls, the ideal throughput is 1 instruction per cycle: .
- Effective execution time per instruction in steady state:
-
Speedup:
The speedup is .
3.2
Neglecting the clock frequency change from 2.5 GHz down to 2 GHz, which would erroneously give a speedup of 4.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 1
- Question
- 48 of 65, printed as CS Q.38
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.