399 views
2 votes
2 votes

this is made easy question . ans provided in solution is 7

1 Answer

2 votes
2 votes

Lets mark the Instructions :

1 . R1 =100

2.  R1 = R2 + R4

3.  R2 = R4  + 25

4 . R4 = R1 + R3

5.  R1 = R1 + 30 .

RAW WAR WAW
    (1,2)
  (2,3)  
(2,5) (3,4)  
(2,4) (4,5)  
  (2,4)  
    (2,5)

I am also getting 8 dependencies .

Related questions

2 votes
2 votes
1 answer
1
Mk Utkarsh asked Oct 23, 2018
2,183 views
Consider the below instructions executed on a 5 stage(IF,ID,EX,MA,WB) RISC pipeline with operand forwarding.I1: ADD R0,R1,R2 (R0=R1+R2)I2: SUB R3,R0,R2I3:MUL R4,R3,R0I4:D...
10 votes
10 votes
7 answers
2
Deepak Sharma 1 asked Dec 7, 2015
6,520 views
Consider the following instructions.$I_1:R_1=100$$I_2:R_1=R_2+R_4$$I_3:R_2=R_4+25$$I_4:R_4=R_1+R_3$$I_5:R_1=R_1+30$Calculate sum of ($\text{WAR, RAW and WAW}$) dependenci...
1 votes
1 votes
4 answers
4