Skip to content

Commit

Permalink
fix(tage): Fix parameter errors in minimalConfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleep-zzz committed Jan 3, 2025
1 parent 4762bfa commit df06a36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/scala/top/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ class MinimalConfig(n: Int = 1) extends Config(
Seq((512, 4, 6),
(512, 9, 6),
(1024, 19, 6)),
// Based on the statistical results of continuous unused counters using spec2k6 coverage 0.3, the threshold is obtained
TageTableCloseThresholds = Seq(300, 300, 300),
SCNRows = 128,
SCNTables = 2,
SCHistLens = Seq(0, 5),
Expand Down
3 changes: 3 additions & 0 deletions src/main/scala/xiangshan/Parameters.scala
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ case class XSCoreParameters
( 4096, 13, 8),
( 4096, 32, 8),
( 4096, 119, 8)),
// Based on the statistical results of continuous unused counters using spec2k6 coverage 0.3, the threshold is obtained
TageTableCloseThresholds: Seq[Int] = Seq(300, 300, 300, 300),
ITTageTableInfos: Seq[Tuple3[Int,Int,Int]] =
// Sets Hist Tag
Seq(( 256, 4, 9),
Expand Down Expand Up @@ -693,6 +695,7 @@ trait HasXSParameter {
}
def numBr = coreParams.numBr
def TageTableInfos = coreParams.TageTableInfos
def TageTableCloseThresholds = coreParams.TageTableCloseThresholds
def TageBanks = coreParams.numBr
def SCNRows = coreParams.SCNRows
def SCCtrBits = coreParams.SCCtrBits
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/xiangshan/frontend/Tage.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ trait TageParams extends HasBPUConst with HasXSParameter {
def get_lgc_br_idx(unhashed_idx: UInt, br_pidx: UInt) = get_unshuffle_bits(unhashed_idx) ^ br_pidx

// Based on the statistical results of continuous unused counters using spec2k6 coverage 0.3, the threshold is obtained
def TABLES_CLOSE_THRESHOLD = Seq(300, 300, 300, 300)
def TABLES_CLOSE_THRESHOLD = TageTableCloseThresholds
}

trait HasFoldedHistory {
Expand Down

0 comments on commit df06a36

Please sign in to comment.