Skip to content

Commit d3a66fd

Browse files
author
Cao Jiaming
committed
cpu-o3: Update MicroTAGE parameters for improved performance
Change-Id: Ib50725992e93e3e72aae63f44ddd817371837e38
1 parent 1d13bf2 commit d3a66fd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cpu/pred/BranchPredictor.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,16 +1070,16 @@ class MicroTAGE(TimedBaseBTBPredictor):
10701070
enableSC = Param.Bool(False, "Enable SC or not")
10711071
updateOnRead = Param.Bool(True,"Enable update on read, no need to save tage meta in FTQ")
10721072
# Keep vector parameters consistent with numPredictors to avoid constructor asserts.
1073-
numPredictors = Param.Unsigned(4, "Number of TAGE predictors")
1074-
tableSizes = VectorParam.Unsigned([512]*4 ,"the TAGE T0~Tn length")
1075-
TTagBitSizes = VectorParam.Unsigned([16]*4 ,"the T0~Tn entry's tag bit size")
1076-
TTagPcShifts = VectorParam.Unsigned([1]*4 ,"when the T0~Tn entry's tag generating, PC right shift")
1073+
numPredictors = Param.Unsigned(8, "Number of TAGE predictors")
1074+
tableSizes = VectorParam.Unsigned([2048]*8 ,"the TAGE T0~Tn length")
1075+
TTagBitSizes = VectorParam.Unsigned([16]*8 ,"the T0~Tn entry's tag bit size")
1076+
TTagPcShifts = VectorParam.Unsigned([1]*8 ,"when the T0~Tn entry's tag generating, PC right shift")
10771077
blockSize = Param.Unsigned(32,"tage index function uses 32B aligned block address")
10781078

1079-
histLengths = VectorParam.Unsigned([5, 29, 57, 107] ,"the BTB TAGE T0~Tn history length")
1079+
histLengths = VectorParam.Unsigned([4, 9, 17, 29, 56, 109, 211, 397] ,"the BTB TAGE T0~Tn history length")
10801080
maxHistLen = Param.Unsigned(970,"The length of history passed from DBP")
10811081
numTablesToAlloc = Param.Unsigned(1,"The number of table to allocated each time")
1082-
numWays = Param.Unsigned(1, "Number of ways per set")
1082+
numWays = Param.Unsigned(2, "Number of ways per set")
10831083
maxBranchPositions = Param.Unsigned(32,"Maximum branch positions per 64-byte block")
10841084
useAltOnNaSize = Param.Unsigned(128,"Size of the useAltOnNa table")
10851085
useAltOnNaWidth = Param.Unsigned(7,"Width of the useAltOnNa table")

0 commit comments

Comments
 (0)