Question

a) Most of the time the sharing of a single branch predictor counter between two different...

a) Most of the time the sharing of a single branch predictor counter between two different branch instructions hurts the prediction accuracy, but sometimes it helps. Give an example of a sequence of branch instructions such that the predictor sharing hurts the performance. Specifically indicate the order in which branch instructions are executed and estimate the prediction accuracy for both cases (shared predictor vs. separate predictors). You can assume any initial state you want.

b) Repeat a), but this time show an example where predictor sharing actually helps the overall accuracy.

Homework Answers

Answer #1

Example of how sharing predictor decreases the accuracy of prediction:

Take two branches B1 and B2 and a predictor P. B1 and B2 are in alternate execution . in this example of program execution B1 is always taken and B2 is always not taken and are interleaved. P is 1-bit predictor shared by B1 and B2.

T-> Taken
NT-> Not taken

This shows how sharing of 1-bit predictor decreases chances of correct prediction.

B) Predictor sharing improving performance:
Same assumption as above but here B1 and B2 are taken/not taken alternately

Do comment back if you need further clarification.Thanks.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
The Business Case for Agility “The battle is not always to the strongest, nor the race...
The Business Case for Agility “The battle is not always to the strongest, nor the race to the swiftest, but that’s the way to bet ’em!”  —C. Morgan Cofer In This Chapter This chapter discusses the business case for Agility, presenting six benefits for teams and the enterprise. It also describes a financial model that shows why incremental development works. Takeaways Agility is not just about the team. There are product-management, project-management, and technical issues beyond the team’s control. Lean-Agile provides...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
Discuss ethical issues that can be identified in this case and the mode of managing ethics...
Discuss ethical issues that can be identified in this case and the mode of managing ethics Enron finds itself in this case. How would you describe the ethical culture and levels of trust at Enron? Provide reasons for your assessment. THE FALL OF ENRON: A STAKEHOLDER FAILURE Once upon a time, there was a gleaming headquarters office tower in Houston, with a giant tilted "£"' in front, slowly revolving in the Texas sun. The Enron Corporation, which once ranked among...
What role could the governance of ethics have played if it had been in existence in...
What role could the governance of ethics have played if it had been in existence in the organization? Assess the leadership of Enron from an ethical perspective. THE FALL OF ENRON: A STAKEHOLDER FAILURE Once upon a time, there was a gleaming headquarters office tower in Houston, with a giant tilted "£"' in front, slowly revolving in the Texas sun. The Enron Corporation, which once ranked among the top Fortune 500 companies, collapsed in 2001 under a mountain of debt...