Question
A five-stage pipeline has stage delays of 150, 120, 150, 160 and 140 nanoseconds. The registers that are used between the pipeline stages have a delay of 5 nanoseconds each.
The total time to execute 100 independent instructions on this pipeline, assuming there are no pipeline stalls, is _____________ nanoseconds.
Official answer and solution
- Official answer
- 17160
- From
- Official GATE 2021 answer key
Solution
Determine the pipeline clock cycle period from the slowest stage delay plus register overhead, then apply the unpipelined stall-free throughput formula.
The pipeline has stages with stage delays:
Intermediate pipeline register delay is .
The clock period of the pipeline must accommodate the slowest stage plus the register overhead:
For independent instructions executed without stalls, the total number of clock cycles required is:
The total execution time is:
17160
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2021 Computer Science and Information Technology (CS, Set-1)
- Question
- 63 of 65, printed as CS Q.53
- 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.