1,451 views
0 votes
0 votes

2 Answers

Best answer
7 votes
7 votes
(1,2)

(1,3)

(2,3)

(2,4)

(3,4)

so as per me too 5
selected by
1 votes
1 votes
Ans will be 3.

(2-1), (3-2) and (4-3).

In RAW, we observe if any in-register is equal to any next consecutive out-register. If yes, then it is RAW.

In-register and out register is explained as

Add ro=r1,r2

Sub r5=r2,r3

In-register    out-register

r1,r2,r3.            ro,r5

And yes it is NOT RAW.

Tips: we compare in register with out register, but not vice-versa.
edited by

Related questions

1.4k
views
0 answers
2 votes
stblue asked Sep 28, 2017
1,440 views
I have gone through several links related to raw harazd..Some are saying, we consider RAW hazard between adjacent instruction only..EXhttps://gateoverflow.in/17729/raw-de...
1.7k
views
3 answers
2 votes
just_bhavana asked Aug 27, 2017
1,720 views
Find total number of RAW hazards.Doubt: Should I4 - I5 be counted or not ?
2.3k
views
1 answers
2 votes
Mk Utkarsh asked Oct 23, 2018
2,301 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...
2.2k
views
1 answers
1 votes
Tuhin Dutta asked Dec 3, 2017
2,176 views
J1: R1 = 100J2: R1 = R2 + R4J3: R2 = R4 + 25J4: R4 = R1 + R3J5: R1 = R1 + 30Give the no of RAW, WAR and WAW hazards