Question: 3. Branch prediction performance [25 points] Please consider the following MIPS pipeline. IF | ID | EX | MEM | WB - IF stage can
3. Branch prediction performance [25 points]
Please consider the following MIPS pipeline.
IF | ID | EX | MEM | WB
- IF stage can have an instruction cache, a branch predictor, and a branch target buffer (BTB).
- 12 % of instructions are conditional branches and 8% are jumps.
- 60 % of branches are taken on average.
- Branch result and address are resolved in ID stage.
(b) [5 points] Predict-taken branch prediction scheme is used with a branch target buffer (BTB).
- BTB captures 80 % of target address in all branches and jumps.
- BTB stores the address of only taken branches and jumps.
Please compute the additional stall cycle due to the control hazard.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
