retagged by
3,754 views

2 Answers

2 votes
2 votes

These are type of data hazard that could occur in the pipeline 

WAW 

Add R1,R2,#100 : Write R1

Subt R1,R3,#30 : Write R1

WAR

Add  R1,R2,#100 : Read R2

Subt R2,R3,#30 : Write R2

RAW

Add R1,R2,#100 : Write R1

Subt R3,R1,#30 : Read R1 

0 votes
0 votes

https://web.cs.iastate.edu/~prabhu/Tutorial/PIPELINE/dataHazClass.html

Refer d above link. Gives the Best Description. I Hope it helps u. :) 

Related questions

2.2k
views
3 answers
3 votes
Keith Kr asked Dec 16, 2014
2,167 views
Indicate the type of data hazards (RAW, WAR, and WAW) that exist between the following instructions:I1:ADD R1, R2, R3 ; R1 = R2 + R3I2:ADD R4, R1, R4 ... only consecutive instructions? (as in I1 and I2) or can it be (I1 and I3) too?
1.5k
views
1 answers
2 votes
khushtak asked Oct 19, 2015
1,524 views
(common data q-30_31)A pipelined processor uses a 4- stages instruction pipeline with the following stages. Instructions fetch (IF) , instruction decode ( ... respectively; before the execution of the instruction sequence.Add  r5,r0,r1   r5
2.2k
views
1 answers
1 votes
Tuhin Dutta asked Dec 3, 2017
2,203 views
J1: R1 = 100J2: R1 = R2 + R4J3: R2 = R4 + 25J4: R4 = R1 + R3J5: R1 = R1 + 30Give the no of RAW, WAR and WAW hazards
5.6k
views
3 answers
2 votes
sunil sarode asked Sep 28, 2017
5,610 views
Consider the following instructions.I 1 : R 1 = 100I 2 : R 1 = R 2 + R 4I 3 : R 2 = R 4 + 25I 4 : R 4 = R 1 + R ... 1 + 30Calculate sum of (WAR, RAW and WAW) dependencies the above instructions.(a) 10(c) 6(b) 12(d) 8