RAW Dependency - 2
I-3 on I-1
I-4 on I-3
WAR Dependency - 2
I-3 on I-2
I-2 on I-1
I-4 on I-1
WAW Dependency - 1
I-4 on I-2
After seeing and solving lots of questions on this topic i would like to share what i found ,
RAW are only between adjecent instruction
ex- R0← R1+R2
R0← R1+R0
R1← R0 + R2
here RAW is on only valid between I-3 and I-2 not in I-3 and I-1
whereas WAR are not only between adjacent instruction .
not sure about WAW for now i am taking WAW only between adjacent instruction