Question: 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
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
