Answered step by step
Verified Expert Solution
Question
1 Approved Answer
It is of High performance computer architecture book: Computer Architecture: A Quantitative Approach, 6th Edition, Hennessy and Patterson, Morgan Kaufmann Publishers, Inc., 2019, ISBN: 978-0-12-811905-1.
It is of High performance computer architecture
book: Computer Architecture: A Quantitative Approach, 6th Edition, Hennessy and Patterson, Morgan Kaufmann Publishers, Inc., 2019, ISBN: 978-0-12-811905-1.
Please solve it clearly with proper explaination
[20 pts.] 3- Consider the following code segment within a loop body: if(aa==2) if (bb==2) bb=0; if (aa!=bb)& Here is the equivalent MIPS code assuming aa and bb are assigned to registers R1 and R2, respectively. Assume that the following list of 8 values of aa and bb are to be processed: iteration (a) Suppose 2-bit BPBs are used to predict the execution of the three branches in this loop. 2-bit BPBs flip when they are wrong two consecutive times and consist of four states: strongly not taken (sNT), weakly not taken (wNT), strongly taken (sT), and weakly taken (wT). Show the trace of predictions and the actual outcome of branches b1, b2, and b3 in the table shown below. The initial values of the 2-bit predictors are all initialized to sNT. What are the prediction accuracies for b1, b2, and b3. What is the overall prediction accuracyStep 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