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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!