Question

Consider an instruction pipeline with four stages (S1, S2, S3 and S4) each with combinational circuit only. The pipeline registers are required between each stage and at the end of the last stage. Delays for the stages and for the pipeline registers are as given in the figure.

Four-stage instruction pipeline S1 delay 5ns, S2 delay 6ns, S3 delay 11ns, S4 delay 8ns with pipeline registers delay 1ns between stages and after S4

What is the approximate speed up of the pipeline in steady state under ideal conditions when compared to the corresponding non-pipeline implementation?

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2011 answer key

Solution

Calculate non-pipelined total latency versus pipelined clock cycle period to determine speedup.

  1. For the non-pipelined implementation, an instruction traverses all combinational stages in a single unclocked path. Total non-pipelined delay is:
Tnon-pipe=5 ns+6 ns+11 ns+8 ns=30 nsT_{\text{non-pipe}} = 5\text{ ns} + 6\text{ ns} + 11\text{ ns} + 8\text{ ns} = 30\text{ ns}
  1. For the pipelined implementation, the clock period TpipeT_{\text{pipe}} is governed by the slowest stage delay plus the register delay:
Tpipe=max⁡(5,6,11,8)+1 ns=11+1=12 nsT_{\text{pipe}} = \max(5, 6, 11, 8) + 1\text{ ns} = 11 + 1 = 12\text{ ns}
  1. Under ideal conditions in steady state, one instruction completes every clock cycle (12 ns12\text{ ns}). The speedup is:
Speedup=Tnon-pipeTpipe=30 ns12 ns=2.5\text{Speedup} = \frac{T_{\text{non-pipe}}}{T_{\text{pipe}}} = \frac{30\text{ ns}}{12\text{ ns}} = 2.5
Final answer

B

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2011 Computer Science and Information Technology (CS)
Question
41 of 65, printed as CS Q.41
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.