A 5-stage pipelined processor has Instruction Fetch (IF), Instruction Decode…

PYQ GATE 2010

A 5-stage pipelined processor has Instruction Fetch (IF), Instruction Decode (ID), Operand Fetch (OF), Perform Operation (PO) and Write Operand (WO) stages. The IF, ID, OF and WO stages take 1 clock cycle each for any instruction. The PO stage takes 1 clock cycle for ADD and SUB instructions, 3 clock cycles for MUL instruction, and 6 clock cycles for DIV instruction respectively. Operand forwarding is used in the pipeline. What is the number of clock cycles needed to execute the following sequence of instructions?

image.png

  1. A.

    13

  2. B.

    15

  3. C.

    17    

  4. D.

    19

Attempted by 148 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…