Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q 2 . Assume a piece of code which executes two branches b 1 and b 2 in alternating sequence ( i . e .
Q Assume a piece of code which executes two branches and in alternating sequence ie
dotsdots. The first six actual outcomes of and are as shown below:
bl: NT T NT T NT NT
b: NT T NT T NT NT
b Repeat part a with a Gag predictor with bit GBHR and bit GPHT All entries of GBHR are
initialized to T The two bits of GPHT are adjusted as a saturating counter and are initialized to the
maximum count.Q Assume a piece of code which executes two branches b and b in alternating sequence ie
dotsdots. The first six actual outcomes of and are as shown below:
bl: NT T NT T NT NT
b: NT T NT T NT NT
a Assume that a PAg branch predictor with bit PABHR and bit GPHT is used. All entries of PABHR
are initialized to and there is no aliasing in PABHR. The two bits of GPHT are adjusted as a
saturating counter and are initialized to the maximum count. Draw a table as shown below in your
answer sheet and show the predictions made for each execution of the branches. Also write the final
values of all counters. Show your work.
b Repeat part a with a Gag predictor with bit GBHR and bit GPHT All entries of GBHR are
initialized to The two bits of GPHT are adjusted as a saturating counter and are initialized to the
maximum count.
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