A load word instruction is immediately followed by a branch instruction(of mips 32).
lw r2, (0)r1;-- I swap registers here as opposed to my previous question
Beq r2, r3, target;
To produce a execution diagram, IF ID EX MEM WB
. Now where should the stall be for BEQ
IF ID EX MEM WB
IF * * ID EX
or
IF ID EX MEM WB
* * IF ID EX
I just want to understand if both ways are possible. Also, what hardware manipulation is involved for such stalls?