Question
A processor uses a 2-bit saturating branch predictor with the states strongly taken, weakly taken, weakly not taken, and strongly not taken. The symbol T
A processor uses a 2-bit saturating branch predictor with the states "strongly taken", "weakly taken", "weakly not taken", and "strongly not taken". The symbol T indicates a branch that is taken and an N indicates a branch that is not taken. Suppose that the following sequence of branches is encountered: T T T N N T T N T a. Starting at the first "not-taken" branch, what would the prediction have been for each branch? How many times was the predictor correct? b. After this sequence of branches is encountered, what state will the predictor be in, and what will be the prediction for the next branch? Explain your reasoning.
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