BranchPredictor.py (13443:a111cb197897) | BranchPredictor.py (13444:26f81be73cb7) |
---|---|
1# Copyright (c) 2012 Mark D. Hill and David A. Wood 2# Copyright (c) 2015 The University of Wisconsin 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 78 unchanged lines hidden (view full) --- 87 choicePredictorSize = Param.Unsigned(8192, "Size of choice predictor") 88 choiceCtrBits = Param.Unsigned(2, "Bits of choice counters") 89 90class LTAGE(BranchPredictor): 91 type = 'LTAGE' 92 cxx_class = 'LTAGE' 93 cxx_header = "cpu/pred/ltage.hh" 94 | 1# Copyright (c) 2012 Mark D. Hill and David A. Wood 2# Copyright (c) 2015 The University of Wisconsin 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 78 unchanged lines hidden (view full) --- 87 choicePredictorSize = Param.Unsigned(8192, "Size of choice predictor") 88 choiceCtrBits = Param.Unsigned(2, "Bits of choice counters") 89 90class LTAGE(BranchPredictor): 91 type = 'LTAGE' 92 cxx_class = 'LTAGE' 93 cxx_header = "cpu/pred/ltage.hh" 94 |
95 logSizeBiMP = Param.Unsigned(14, "Log size of Bimodal predictor in bits") | |
96 logRatioBiModalHystEntries = Param.Unsigned(2, 97 "Log num of prediction entries for a shared hysteresis bit " \ 98 "for the Bimodal") | 95 logRatioBiModalHystEntries = Param.Unsigned(2, 96 "Log num of prediction entries for a shared hysteresis bit " \ 97 "for the Bimodal") |
99 logSizeTagTables = Param.Unsigned(11, "Log size of tag table in LTAGE") | |
100 logSizeLoopPred = Param.Unsigned(8, "Log size of the loop predictor") 101 nHistoryTables = Param.Unsigned(12, "Number of history tables") 102 tagTableCounterBits = Param.Unsigned(3, "Number of tag table counter bits") 103 tagTableUBits = Param.Unsigned(2, "Number of tag table u bits") 104 histBufferSize = Param.Unsigned(2097152, 105 "A large number to track all branch histories(2MEntries default)") 106 minHist = Param.Unsigned(4, "Minimum history size of LTAGE") 107 maxHist = Param.Unsigned(640, "Maximum history size of LTAGE") | 98 logSizeLoopPred = Param.Unsigned(8, "Log size of the loop predictor") 99 nHistoryTables = Param.Unsigned(12, "Number of history tables") 100 tagTableCounterBits = Param.Unsigned(3, "Number of tag table counter bits") 101 tagTableUBits = Param.Unsigned(2, "Number of tag table u bits") 102 histBufferSize = Param.Unsigned(2097152, 103 "A large number to track all branch histories(2MEntries default)") 104 minHist = Param.Unsigned(4, "Minimum history size of LTAGE") 105 maxHist = Param.Unsigned(640, "Maximum history size of LTAGE") |
108 minTagWidth = Param.Unsigned(7, "Minimum tag size in tag tables") | 106 pathHistBits = Param.Unsigned(16, "Path history size") 107 tagTableTagWidths = VectorParam.Unsigned( 108 [0, 7, 7, 8, 8, 9, 10, 11, 12, 12, 13, 14, 15], 109 "Tag size in TAGE tag tables") 110 logTagTableSizes = VectorParam.Int( 111 [14, 10, 10, 11, 11, 11, 11, 10, 10, 10, 10, 9, 9], 112 "Log2 of TAGE table sizes") 113 logUResetPeriod = Param.Unsigned(19, 114 "Log period in number of branches to reset TAGE useful counters") 115 useAltOnNaBits = Param.Unsigned(4, "Size of the USE_ALT_ON_NA counter") 116 withLoopBits = Param.Unsigned(7, "Size of the WITHLOOP counter") |
109 110 loopTableAgeBits = Param.Unsigned(8, "Number of age bits per loop entry") 111 loopTableConfidenceBits = Param.Unsigned(2, 112 "Number of confidence bits per loop entry") 113 loopTableTagBits = Param.Unsigned(14, "Number of tag bits per loop entry") 114 loopTableIterBits = Param.Unsigned(14, "Nuber of iteration bits per loop") | 117 118 loopTableAgeBits = Param.Unsigned(8, "Number of age bits per loop entry") 119 loopTableConfidenceBits = Param.Unsigned(2, 120 "Number of confidence bits per loop entry") 121 loopTableTagBits = Param.Unsigned(14, "Number of tag bits per loop entry") 122 loopTableIterBits = Param.Unsigned(14, "Nuber of iteration bits per loop") |
123 logLoopTableAssoc = Param.Unsigned(2, "Log loop predictor associativity") |
|
115 | 124 |