Question: 4 . 2 9 This exercise examines the accuracy of various branch predictors for the following repeating pattern ( e . g . , in
This exercise examines the accuracy of various branch predictors for the following repeating pattern eg in a loop of branch outcomes: T NT T T NT
$ What is the accuracy of alwaystaken and alwaysnottaken predictors for this sequence of branch outcomes?
$ What is the accuracy of the bit predictor for the first four branches in this pattern, assuming that the predictor starts off in the bottom left state from Figure predict not taken
$ What is the accuracy of the bit predictor if this pattern is repeated forever?
$ Design a predictor that would achieve a perfect accuracy if this pattern is repeated forever. You predictor should be a sequential circuit with one output that provides a prediction for taken, for not taken and no inputs other than the clock and the control signal that indicates that the instruction is a conditional branch.
FIGURE The states in a bit prediction scheme. By using bits rather than a branch that strongly favors taken or not takenas many branches dowill be mispredicted only once. The bits are used to encode the four states in the system. The bit scheme is a general instance of a counterbased predictor, which is incremented when the prediction is accurate and decremented otherwise, and uses the midpoint of its range as the division between taken and not taken.
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
