in CO and Architecture edited by
720 views
1 vote
1 vote

The following sequence of instructions is executed in basic 5 stage pipeline ( F D E M W). Assume data dependency is resolved by Operand Forwarding. Load instruction output present at 4th stage and ALU instruction output is at third stage. Assume each stage takes one cycle.

How many instructions must be inserted to achieve CPI = 1 by using Operand Forwarding ?

A. 3

B. 4

C. 5

D. 6

in CO and Architecture edited by
by
720 views

4 Comments

Is the approach Correct ?
0
0
Can i use this approach always ?
0
0
above solution is correct. That is the way u approach it.

Not sure how u approached the solution.
0
0

1 Answer

0 votes
0 votes
key point is :

first execute pipeline without operand forwarding.(15 cycles)

second  execute pipeline with  operand forwarding.(10 cycles)

and then subtract both you will get required ans(5 cycles)

Related questions