COA Tute 8 Main
COA Tute 8 Main
COA Tute 8 Main
What is the approximate speed up of the pipeline in steady state under ideal conditions when compared to the
corresponding non-pipeline implementation?
Q3. 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?
Q4. Consider a 4 stage pipeline processor. The number of cycles needed by the four instructions I1, I2, I3, I4 in
stages S1, S2, S3, S4 is shown below:
S1 S2 S3 S4
I1 2 1 1 1
I2 1 3 2 2
I3 2 1 1 3
I4 1 2 2 2