Answered step by step
Verified Expert Solution
Link Copied!

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 .

Q2. Assume a piece of code which executes two branches b1 and b2 in alternating sequence (i.e.
b1,b2,b1,b2,b1,b2,dotsdots. The first six actual outcomes of b1 and b2 are as shown below:-
bl: NT T NT T NT NT
b2: NT T NT T NT NT
(b) Repeat part (a) with a Gag predictor with 2 bit GBHR and 2 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.Q2. Assume a piece of code which executes two branches b1 and b2 in alternating sequence (i.e.
b1,b2,b1,b2,b1,b2,dotsdots. The first six actual outcomes of b1 and b2 are as shown below:
bl: NT T NT T NT NT
b2: NT T NT T NT NT
6(a) Assume that a PAg branch predictor with 2 bit PABHR and 2 bit GPHT is used. All entries of PABHR
are initialized to 'T', 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 2 bit GBHR and 2 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.
[12]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago