For the following code, identify data hazard, structural hazard and control hazard, if any in consecutive instructions.
Show the processing of following instructions on a 5-stage RISC processor (without data forwarding)
Show the processing of following instructions on a 5-stage RISC processor (with data forwarding). Compare above two cases.
add r3, r1, r2 ; r3 destination
and r5, r3, r4 ; r5 result field
load r6, 24(r3) ; r6 destination
add r2, r6, r3 ; r2 result field
store r6, 12(r2) ; r6 source of data