Controlling the pipeline
Lets refer to interface between stages IF and ID, IF/ID and the other interfaces between stages ID/EX, EX/MEM, and MEM/WB.
MUX1: is controlled by the condition checking done at EX/MEM. Based on this condition EX/MEM.cond, the MUX1 selects the current PC or the branch target as the instruction address.