- First tthing we had to do was reverse engineer what the loop execution path is.

R1 = 0 R1 = 2 R1 = 4
N
1

0
T

-2
2
NT
B1B2B3
R1 = 0actactact
NTN
R1 = 2NTT
R1 = 4TNN
R1 = 0R1 =2R1 = 4
13
NNT
023
TTN
4
-202
202
NTN
B1B2B3
R1=?PREDACTPREDACTPREDACT
0N/NNN/NTN/NN
2N/NNT/NTN/NT
4N/NTT/NNN/TN
0N/TNT/NTN/TN
2N/TNT/NTN/NT
4N/TTT/NNN/TN
total of 5/18 missed predictions
0.28
2/9 miss predictons thereafter for this sequence.
0.22
Because the ones for the first two columns are correctly seeded and will not miss going forward. But the third column will still flip flop.
Now we neeed to make one predictor that has 4 states.
Begin by considering B3
(0,2) predictor.
requiredNTNNTN
Consider B3 sequence:actualNTNNTN
design this predictor to give you that sequence.
Consider B1 sequencerequiredNNTNNT
actualNTTNNT
Consider B2 sequencerequiredttnttn
actualntntnn
What if we now see the traditional loopy code sequence
TTTTTTNREQ
NTNTNTTACT

Index