A CPU has a five-stage pipeline and runs at 1 GHz frequency. Instruction fetch…

PYQ GATE 2006

A CPU has a five-stage pipeline and runs at 1 GHz frequency. Instruction fetch happens in the first stage of the pipeline. A conditional branch instruction
computes the target address and evaluates the condition in the third stage of the pipeline. The processor stops fetching new instructions following a conditional branch until the branch outcome is known. A program executes 109 instructions out of which 20% are conditional branches. If each instruction takes one cycle to complete on average, the total execution time of the program is:

  1. A.

    1.0 second

  2. B.

    1.2 seconds

  3. C.

    1.4 seconds

  4. D.

    1.6 seconds

Attempted by 144 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…