Question: Problem 1 Pipeline Control Hazard ( Chapter 4 ) The importance of having a good branch predictor depends on how often conditional branches are executed.
Problem Pipeline Control Hazard Chapter
The importance of having a good branch predictor depends on how often conditional branches are executed. Together with branch predictor accuracy, this will determine how much time is spent stalling due to mispredicted branches. Assume we have the following breakdown of dynamic instructions.
Also, assume the accuracies of the three different branch predictors are as follows:
If the branch target address will be available the same cycle the branch condition is resolved, ie in EX stage different from Lecture slides So there is a cycle penalty for a branch misprediction. Please answer the following questions.
A Stall cycles due to mispredicted branches increase the CPI. What is the extra CPI due to mispredicted branches with the alwaystaken predictor? Assume branch outcomes are determined in EX stage, and there is no data hazard.
B Repeat the above question with an alwaysnottaken predictor.
C Repeat the above question with a bit predictor.
D With the bit predictor, what speedup would be achieved if we could convert half of the branch instructions in a way that replaces a branch instruction with an ALU instruction? Assume that correctly and incorrectly predicted instructions have the same chance of being replaced.
E With the bit predictor, what speedup would be achieved if we could convert half of the branch instructions in a way that replaced each branch instruction with ALU instructions? Assume that correctly and incorrectly predicted branch instructions have the same chance of being replaced.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
