Discuss implementing a dynamic branch predictor

Assignment Help Basic Computer Science
Reference no: EM133309120

Assignment:

Question

Instead of using the static predict not-taken scheme for conditional branch instructions we could consider implementing a dynamic branch predictor. A 1-bit branch predictor uses the previous outcome of a conditional branch to predict the next outcome, with 0  meaning not-taken and 1 meaning taken. The predictor state is stored in a branch history table (BHT) indexed by the least significant bits of the program counter by taking it modulo the size of the table. Unconditional jumps don't use the BHT. Consider a 1-bit dynamic branch predictor with an 8-entry branch history table (BHT) that initially has all entries set to "0" for predict-not-taken. Assume that bubble begins at PC 0x100 and that the processor is designed assuming all instructions are 4 byte aligned.

a) What will be the state of the BHT after bubble() with the optimized inner loop is called with a 10-element array sorted in ascending order?

b) How many of the predictions are correct?

c) How many of the predictions are incorrect?

d) What is the misprediction rate?

e) What are the total number of stall/squash cycles due to mispredicted branches?

f) What is the CPI of bXX for bubble considering control hazards?

g) Suppose you can add a 1-bit branch predictor to the pipeline without changing the clock frequency. What is the speedup of using a 1-bit predictor over static predict-not-taken for this call to bubble? Use the Iron Law. Round to 3 significant digits.

Reference no: EM133309120

Questions Cloud

Discuss how prolog might be used for ai applications : Discuss how Prolog might be used for AI applications. As part of this discussion, you should give a simple problem domain to frame your overview.
Problem of simulating shooting from large cannon to a target : Assume the initial velocity of the cannon ball leaving the cannon and the coordinates of the target are known.
What does hard coding mean : What does hard coding mean? Why is this not a good thing to do? Provide an example to illustrate your point.
Explain concepts in the foundations of logic programing : Explain the following concepts in the foundations of logic programing: functors, logic variables, unification, predicates, and backtracking search.
Discuss implementing a dynamic branch predictor : Instead of using the static predict not-taken scheme for conditional branch instructions we could consider implementing a dynamic branch predictor.
Define digital transformation : How do you define digital transformation and digitalization and what is the difference? What is the impact of digital transformation on ITIIS projects?
Discuss the value of social media : Discussed as the value of social media. There are many significant pros and cons of social media that people have become tremendously passionate about it.
Explain configuration is indicative of potential compromise : Explain whether or not the server's updated configuration is indicative of a potential compromise.
What are the four shifts of giftivism : What are the four shifts of Giftivism? What is hindering me from practicing kindness and generosity?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd