retagged by
3,601 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

1 votes
1 votes
1 answer
3
Tuhin Dutta asked Dec 3, 2017
2,111 views
J1: R1 = 100J2: R1 = R2 + R4J3: R2 = R4 + 25J4: R4 = R1 + R3J5: R1 = R1 + 30Give the no of RAW, WAR and WAW hazards