Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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