Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. [10 points] The current state of a gshare prediction table is shown below. After discarding the lowest 2 bits of the PC (don't forget

image text in transcribed

6. [10 points] The current state of a gshare prediction table is shown below. After discarding the lowest 2 bits of the PC (don't forget to do this!) to form PC, the index is formed by XORing the low 3 bits of PC" with the global branch history register (BHR). The BHR is also 3 bits. The most recent branch outcome is shifted into the lowest bit position of the BHR (i.e., shift the BHR left). 0 2 1 2 The current branch PC is 00F4 (in hex) and the current BHR is 011 (in binary). The current branch's actual outcome is not-taken a. B points] What was the outcome of the previous branch in the dynamic instruction stream, taken or not-taken? How can you tell? b. [4 points] What is the value of the counter used to predict the current branch? What is the prediction, taken or not-taken? Show your work. c. 3 points] Show the new state of the prediction table and BHR, after updating them with the actual outcome of the current branch 6. [10 points] The current state of a gshare prediction table is shown below. After discarding the lowest 2 bits of the PC (don't forget to do this!) to form PC, the index is formed by XORing the low 3 bits of PC" with the global branch history register (BHR). The BHR is also 3 bits. The most recent branch outcome is shifted into the lowest bit position of the BHR (i.e., shift the BHR left). 0 2 1 2 The current branch PC is 00F4 (in hex) and the current BHR is 011 (in binary). The current branch's actual outcome is not-taken a. B points] What was the outcome of the previous branch in the dynamic instruction stream, taken or not-taken? How can you tell? b. [4 points] What is the value of the counter used to predict the current branch? What is the prediction, taken or not-taken? Show your work. c. 3 points] Show the new state of the prediction table and BHR, after updating them with the actual outcome of the current branch

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

More Books

Students also viewed these Databases questions

Question

What are the primary responsibilities of the Federal Reserve Board?

Answered: 1 week ago

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago