edited by
917 views
0 votes
0 votes

please check the answer...

edited by

2 Answers

2 votes
2 votes

I0 : R2 <-- R0 + R1

I1 : R1 <-- R2 - R1

I2 : R0 <-- R2 - R0

I3 : R2 <-- R1 * R0

I4 : R3 <-- R1 + R0

I/C 1 2 3 4 5 6 7 8 9 10 11
I0 IF ID PO MA WB            
I1   IF ID PO MA WB          
I2     IF ID PO MA WB        
I3       IF ID PO PO PO MA WB  
I4         IF X X ID PO MA WB

in this instruction pipeline using operand forwarding so result are store in stage PO . Hence next instruction must used the result after PO stage.(where X represent no of stall)

Hence Total Stall = 2

0 votes
0 votes
ans is 2 and the given explation is correct

Related questions