Find total number of RAW hazards.
Doubt: Should I4 - I5 be counted or not ?
@Subhanshu @rahul_sharma read https://gateoverflow.in/85255/pipeline_hazard entirely (with lot of patience)
Even Arjun agreed with Habib somewhere at the end of the chain. In the question in the link above, they have asked for possible "hazards" and thus every combination is to be considered. If it were "dependencies" the the answer will be 3 (true dependencies, adjacent).
The answer to this question should be 6.
@Warlock lord In the given question
I2-I5 (Acc) is a possible RAW hazard but it will never occurs as I5 not depends on I2 for Acc instead it depends on I4, because whatever the value I4 writes on Data item Acc, that value I5 reads not the value I2 writes on Acc.
So, it is just a possible RAW hazard but it will never occurs.
And moreover in that question they are asking not RAW hazard they are asking about POSSIBLE RAW hazards.
Answer should be 3.
RAW Dependency - 5
I-2 on I-1
I-4 on I-1
I-3 on I-2
I-4 on I-2
I-5 on I-4