in CO and Architecture retagged by
763 views
0 votes
0 votes

I am getting answer as 9 , the given answer is 8.

in CO and Architecture retagged by
763 views

4 Comments

yup, 8 cycles.
0
0

But shrestha, 

Is my above reason correct ? - 

So basically even if OF stage for second instruction takes wrong value they will be corrected by operand forwarding 

0
0
yes, you are right.
0
0

1 Answer

0 votes
0 votes
  1 2 3 4 5 6 7 8
I1 IF ID OF EX WB      
I2   IF ID OF EX WB    
I3     IF ID OF EX WB  
I4       IF ID OF EX WB

in this question instruction I1 perform the addition operation and result store in ALU in clock cycle 3 and next instruction I2 use the result which is store by instruction I1 using operand forwarding !

hence the total clock cycle is 8.

edited by
by

Related questions