Skip to content
GATEiit

GATE CSE 2023 Q33: Time for 100 instructions on a 3-stage pipeline

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.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 2040 (official GATE 2023 final answer key)

Concept used: Pipeline cycle time is the slowest stage; nn instructions on kk stages take (k+n−1)(k + n - 1) cycles.

First step: Take the cycle time as 20 ns and count 3+100−13 + 100 - 1 cycles.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2023 CS question paper and final answer key, organised by IIT Kanpur. Question paper · Answer key