Answer:
See the explanation for the answer.
Explanation:
add $12, $15, $14 IF ID EX MEM WB
lw $15, 100($12) IF ID EX MEM1 MEM2 WB
sub $13, $15, $12 IF ID EX MEM1 WB
add $12, $15, $13 IF ID EX MEM WB
sub $13,$15,$12 - dependencies-$15,$12
hazards-$12-read before write data hazard - can be solved through forwarding
$15-structural hazard-stalled by 3 clock cycle (if no forwarding)
-stalled by 1 clock cycle (if forwarding is present)
add $12,$15,$13 - dependencies $15,13
hazards-$12,$15-read before write data hazard - can be solved through forwarding