Question: Assume that a RISC processor uses branch prediction to improve its performance. The following table gives the number of cycles taken for predicted and actual
Assume that a RISC processor uses branch prediction to improve its performance. The following table gives the number of cycles taken for predicted and actual branch outcomes. These figures include both the cycles taken by the branch itself and the branch penalty associated with branch instructions.

If Pb is the probability that a particular instruction is a branch, pt is the probability that a branch is taken, and Pw is the probability of a wrong prediction, derive an expression for the average number of cycles per instruction, Tave· All non-branch instructions take one cycle to execute.
Prediction Not taken Taken Actual Not taken 1 2 Taken 4 1
Step by Step Solution
3.39 Rating (158 Votes )
There are 3 Steps involved in it
The total number of possible outcomes of an instruction are Nonbranch c... View full answer
Get step-by-step solutions from verified subject matter experts
