Next: ...
Up: Control Hazards, Branch Prediction
Previous: Control Hazards, Branch Prediction
- Two part solution:
- Determine branch taken or not sooner
- Compute taken branch address earlier
- DLX branch conditions are deliberately simple:
BEQZ, BNEZ
- DLX solution:
- Move zero test to ID stage
- Introduce dedicated adder
in ID stage for calculating
branch target address
- One cycle stall