Prev | Home | Next |
Suggestion Box |
Pen_Tot | Total Branch Penalty |
---|---|
Pen_Bra | Branch Penalty |
Pen_MisPred | Branch Mispredict Penalty |
%MisPred | Percentage of Branches Mispredicted |
We now compare two strategies for an ISA that tests a general purpose
register in conditional branches (i.e. JUMPEQ R3 300(PC)
).
The two strategies are predict not-taken and predict
taken.
It is interesting to note that
Pen_Bra | 0 |
---|---|
Pen_MisPred | 2 |
%MisPred | 0.60 |
When we predict that branches are taken, Pen_Bra is 1, because the instruction following the branch must be killed while it is FetchInst.
Pen_Bra | 1 |
---|---|
Pen_MisPred | 2 |
%MisPred | 0.40 |
It is interesting to note that even though %MisPred is lower for predict-taken than predict-not-taken, the total branch penalty is lower for predict-not-taken.
Prev | Home | Next |
Suggestion Box |