Question
Consider a 3-stage pipelined processor having a delay of 10 ns (nanoseconds), 20 ns, and 14 ns, for the first, second, and the third stages, respectively. Assume that there is no other delay and the processor does not suffer from any pipeline hazards. Also assume that one instruction is fetched every cycle.
The total execution time for executing 100 instructions on this processor is _______ ns.
Official answer and solution
- Official answer
- 2040
- From
- Official GATE 2023 answer key
Solution
Determine the clock cycle time from the maximum stage delay and calculate pipeline execution time for instructions.
-
The stage delays are , , . With no latch delay, the pipeline clock cycle time is:
-
In a -stage pipeline, the number of clock cycles required to execute hazard-free instructions is:
For stages and instructions:
-
Total execution time:
2040
Multiplying , forgetting the initial pipeline fill delay of cycles.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2023 Computer Science and Information Technology (CS)
- Question
- 33 of 65
- 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.