Question: 4. Suppose you are given a pipelined LEGv8 processor with built-in 1-bit dynamic predictor as shown below. Calculate the branch prediction accuracy (= # of

4. Suppose you are given a pipelined LEGv8 processor with built-in 1-bit dynamic predictor as shown below. Calculate the branch prediction accuracy (= # of correct predictions / # of total predictions) of the following branch outcome sequence. Assume that the initial state is "Predict taken" [20pts]. Not taken- Predict Not Takern Predict TakenTaken Branch outcome sequence (T means "branch-taken" and N means "branch-not-taken") T, T, N, N, N, T, N, T, N, T, T, N, N 5. For the branch outcome sequence given in question 4, calculate the branch prediction accuracy of the static branch prediction strategies including "Always predict taken" and Always predict not taken" Among three branch prediction strategies considered in questions 4 and 5, which one has the highest branch prediction accuracy for the given branch outcome sequence? Justify your answer [10pts]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
