27. The finite-state machine of Figure 12.48 for branch prediction moves from predicting no branch to predicting

Question:

27. The finite-state machine of Figure 12.48 for branch prediction moves from predicting no branch to predicting branch only if two consecutive branches were made (and similarly for moving from predicting branch to predicting no branch).

(a) Draw a finite-state machine that moves from predicting no branch to predicting branch only if three consecutive branches were made (and similarly for moving from predicting branch to predicting no branch). (b)

How many prediction bits would be necessary for the implementation of the machine?

Step by Step Answer:

Related Book For  book-img-for-question

Computer Systems

ISBN: 9781284079630

5th Edition

Authors: J Stanley Warford

Question Posted: