Thus, only one instruction that follows the branch needs to be fetched. If the branch is taken, the instruction is flushed. |
We need a control signal to reset the IF/ID register.
This will convert the fetched instruction into a nop .
Note that this hardware only works for beq (branch on equal).
Other branches can be implemented in a similar way.
Two difficulties occur when determining branch decisions at the ID stage:
|
Do not bother Joseph when he is in his cups (drunk) — he is very irritable. |