433 views
0 votes
0 votes
Do we have to see the  WAW and WAR dependency in adjacent  instructions or the full set of instructions ?

1 Answer

0 votes
0 votes
WAW check full set instructions for write on same register.

WAR check instructions untill you encounter first write, i.e,suppose R1 register is read in any instruction. Now look down below that instruction untill you encounter the first write on R1.

RAW suppose R1 is written by instruction I1. Now all instructions below this instruction which read R1 will give RAW if value of R1 is not being changed, i.e, all instruction that read R1 read that same value written by I1 and no other instruction is modifying the value of R1 in between then its a RAW.

Related questions

3 votes
3 votes
0 answers
1
1 votes
1 votes
1 answer
2
arch asked Dec 19, 2017
1,488 views
0 votes
0 votes
0 answers
3
pa-try asked Dec 14, 2017
808 views