Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started