7. For each of the following predictors for be in the code above, give its \"win
ID: 3606502 • Letter: 7
Question
7. For each of the following predictors for be in the code above, give its "win/loss/no decision” numbers. That is, say how many correct predictions, how many incorrect predictions, and how many times the predictor declines to predict. A 1-bit dynamic branch predictor is CS 250 Fall 2017 Homework 08 des igned as follows . Branch was taken Branch was not taken Branch was not takern Predict taken Predict not taken Branch was taken Until this predictor is initialized by recording actual behavior of a machine language branch instruction, it makes no prediction for that branch a. Predict taken b. Predict not taken c. Predict using 1-bit branching history of bneExplanation / Answer
a)
Initially it makes no prediction for that branch. So now it is in prediction not taken branch.
So if predict taken then give "loss", since currently predictor in breanch not taken branch.
so Loss.
--------------------------------------------------------------------------------------------------------------------------------------------
b)
Initially it makes no prediction for that branch. So prediction not taken will give "Win"
----------------------------------------------------------------------------------------------------------------------------------------------
c)
Predict using 1-bit branching history of bne
It gives "no decision", because it accepts both bits.. (1-branch taken, 0-branch not taken)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.