I want to find the expexted hazards in below code until clock cycle 7 with appropriate reasons and solution.
1: sub $2,$2,$3
2: lw $4, 0($2)
3: and $1,$4,$2
4: beq $1,$2,1
5: or $5,$1,$6
6: add $2,$5,$3
In my opinion
line2: Ex hazard (solution is forwarding)
line3: Ex hazard , mem hazard (solution is forwarding and add one bubble)
line5: Condition hazard
line6: Ex hazard (forwarding)
I want solve this problem...