c. Assume MIPS is processing the following program:
LW R1, 0(R2)
SUB R4, R1, R5
AND R6, R1, R7
OR R8, R1, R9
Also assuming the forwarding mechanism is supported with MIPS. Does the
MIPS pipeline need to be stalled during the execution of the above program?
Explain by using a diagram similar to the one below.
IM Reg ALU DM Reg
IM Reg ALU DM Reg
IM Reg ALU DM Reg
IM Reg ALU DM Reg
IM Reg ALU DM Reg
Add R1, R2, R3
Sub R4, R1, R5
AND R6, R1, R7
OR R8, R1, R9
XOR R10, R1, R11