Question: Question 1 : Branch Prediction ( 1 5 points ) a ) [ 5 points ] Assume that we observed the following outcomes for the
Question : Branch Prediction points
a points Assume that we observed the following outcomes for the last instances of particular branch instruction: NTNTNTTN where N indicates Not Taken, and T indicates Taken branch Show the content of Branch History Table BHT and predictions to be made if we use bit branch predictor, and calculate the of accuracy of the predictor. Assume that very first prediction is Not Taken
tableBHTPrediction,Actual Result,TrueFalseNNtrueTNTNTTN
b points Assume that we observed the following outcomes for the last instances of particular branch instruction: NTTTTNTN where N indicates Not Taken, and T indicates Taken branch Show the content of Branch History Table BHT and predictions to be made if we use bit branch predictor, and calculate the of accuracy of the predictor. Assume that we start with state that leads to have the first prediction be Not Taken N
tableBHTPrediction,Actual Result,TrueFalseNNtrueTTTTNTN
c points Assume a processor that employs a branch prediction whose prediction accuracy is When a branch is predicted correctly, there is no performance penalty. However, when a branch is mispredicted, then there is cycles of penalty. Assume that we want to run a program whose of the instructions are branch instructions. Considering the ideal CPI on this processor is when no hazard and stall occur what will be the CPI for this program on the given processor?
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
