Question: The following branch prediction algorithm has been suggested: Predict that the branch will be taken if the previous two branches were taken; predict not taken
The following branch prediction algorithm has been suggested: Predict that the branch will be taken if the previous two branches were taken; predict not taken otherwise. The system has one input Z. If Z = 1, the current branch is taken, not taken otherwise. The output X = 1 predicts that the branch should be taken, not taken otherwise. Design such a finite state machine. You may use any gates and flip-flops.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
