xref: /XiangShan/src/main/scala/xiangshan/Parameters.scala (revision a0c65233389cccd2fdffe58236fb0a7dedf6d54f)
1/***************************************************************************************
2* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences
3* Copyright (c) 2020-2021 Peng Cheng Laboratory
4*
5* XiangShan is licensed under Mulan PSL v2.
6* You can use this software according to the terms and conditions of the Mulan PSL v2.
7* You may obtain a copy of Mulan PSL v2 at:
8*          http://license.coscl.org.cn/MulanPSL2
9*
10* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
11* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
12* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
13*
14* See the Mulan PSL v2 for more details.
15***************************************************************************************/
16
17package xiangshan
18
19import chipsalliance.rocketchip.config.{Field, Parameters}
20import chisel3._
21import chisel3.util._
22import xiangshan.backend.exu._
23import xiangshan.backend.dispatch.DispatchParameters
24import xiangshan.cache.DCacheParameters
25import xiangshan.cache.prefetch._
26import xiangshan.frontend.{BasePredictor, BranchPredictionResp, FTB, FakePredictor, RAS, Tage, ITTage, Tage_SC, FauFTB}
27import xiangshan.frontend.icache.ICacheParameters
28import xiangshan.cache.mmu.{L2TLBParameters, TLBParameters}
29import freechips.rocketchip.diplomacy.AddressSet
30import system.SoCParamsKey
31import huancun._
32import huancun.debug._
33import xiangshan.cache.wpu.WPUParameters
34import coupledL2._
35import xiangshan.mem.prefetch.{PrefetcherParams, SMSParams}
36
37import scala.math.min
38
39case object XSTileKey extends Field[Seq[XSCoreParameters]]
40
41case object XSCoreParamsKey extends Field[XSCoreParameters]
42
43case class XSCoreParameters
44(
45  HasPrefetch: Boolean = false,
46  HartId: Int = 0,
47  XLEN: Int = 64,
48  VLEN: Int = 128,
49  HasMExtension: Boolean = true,
50  HasCExtension: Boolean = true,
51  HasDiv: Boolean = true,
52  HasICache: Boolean = true,
53  HasDCache: Boolean = true,
54  AddrBits: Int = 64,
55  VAddrBits: Int = 39,
56  HasFPU: Boolean = true,
57  HasCustomCSRCacheOp: Boolean = true,
58  FetchWidth: Int = 8,
59  AsidLength: Int = 16,
60  EnableBPU: Boolean = true,
61  EnableBPD: Boolean = true,
62  EnableRAS: Boolean = true,
63  EnableLB: Boolean = false,
64  EnableLoop: Boolean = true,
65  EnableSC: Boolean = true,
66  EnbaleTlbDebug: Boolean = false,
67  EnableJal: Boolean = false,
68  EnableFauFTB: Boolean = true,
69  UbtbGHRLength: Int = 4,
70  // HistoryLength: Int = 512,
71  EnableGHistDiff: Boolean = true,
72  EnableCommitGHistDiff: Boolean = true,
73  UbtbSize: Int = 256,
74  FtbSize: Int = 2048,
75  RasSize: Int = 32,
76  RasSpecSize: Int = 64,
77  RasCtrSize: Int = 8,
78  CacheLineSize: Int = 512,
79  FtbWays: Int = 4,
80  TageTableInfos: Seq[Tuple3[Int,Int,Int]] =
81  //       Sets  Hist   Tag
82    // Seq(( 2048,    2,    8),
83    //     ( 2048,    9,    8),
84    //     ( 2048,   13,    8),
85    //     ( 2048,   20,    8),
86    //     ( 2048,   26,    8),
87    //     ( 2048,   44,    8),
88    //     ( 2048,   73,    8),
89    //     ( 2048,  256,    8)),
90    Seq(( 4096,    8,    8),
91        ( 4096,   13,    8),
92        ( 4096,   32,    8),
93        ( 4096,  119,    8)),
94  ITTageTableInfos: Seq[Tuple3[Int,Int,Int]] =
95  //      Sets  Hist   Tag
96    Seq(( 256,    4,    9),
97        ( 256,    8,    9),
98        ( 512,   13,    9),
99        ( 512,   16,    9),
100        ( 512,   32,    9)),
101  SCNRows: Int = 512,
102  SCNTables: Int = 4,
103  SCCtrBits: Int = 6,
104  SCHistLens: Seq[Int] = Seq(0, 4, 10, 16),
105  numBr: Int = 2,
106  branchPredictor: Function2[BranchPredictionResp, Parameters, Tuple2[Seq[BasePredictor], BranchPredictionResp]] =
107    ((resp_in: BranchPredictionResp, p: Parameters) => {
108      val ftb = Module(new FTB()(p))
109      val ubtb =Module(new FauFTB()(p))
110      // val bim = Module(new BIM()(p))
111      val tage = Module(new Tage_SC()(p))
112      val ras = Module(new RAS()(p))
113      val ittage = Module(new ITTage()(p))
114      val preds = Seq(ubtb, tage, ftb, ittage, ras)
115      preds.map(_.io := DontCare)
116
117      // ubtb.io.resp_in(0)  := resp_in
118      // bim.io.resp_in(0)   := ubtb.io.resp
119      // btb.io.resp_in(0)   := bim.io.resp
120      // tage.io.resp_in(0)  := btb.io.resp
121      // loop.io.resp_in(0)  := tage.io.resp
122      ubtb.io.in.bits.resp_in(0) := resp_in
123      tage.io.in.bits.resp_in(0) := ubtb.io.out
124      ftb.io.in.bits.resp_in(0)  := tage.io.out
125      ittage.io.in.bits.resp_in(0)  := ftb.io.out
126      ras.io.in.bits.resp_in(0) := ittage.io.out
127
128      (preds, ras.io.out)
129    }),
130  IBufSize: Int = 48,
131  DecodeWidth: Int = 6,
132  RenameWidth: Int = 6,
133  CommitWidth: Int = 6,
134  EnableRenameSnapshot: Boolean = true,
135  RenameSnapshotNum: Int = 4,
136  FtqSize: Int = 64,
137  EnableLoadFastWakeUp: Boolean = true, // NOTE: not supported now, make it false
138  IssQueSize: Int = 16,
139  NRPhyRegs: Int = 192,
140  VirtualLoadQueueSize: Int = 80,
141  LoadQueueRARSize: Int = 80,
142  LoadQueueRAWSize: Int = 64, // NOTE: make sure that LoadQueueRAWSize is power of 2.
143  RollbackGroupSize: Int = 8,
144  LoadQueueReplaySize: Int = 72,
145  LoadUncacheBufferSize: Int = 20,
146  LoadQueueNWriteBanks: Int = 8, // NOTE: make sure that LoadQueueRARSize/LoadQueueRAWSize is divided by LoadQueueNWriteBanks
147  StoreQueueSize: Int = 64,
148  StoreQueueNWriteBanks: Int = 8, // NOTE: make sure that StoreQueueSize is divided by StoreQueueNWriteBanks
149  StoreQueueForwardWithMask: Boolean = true,
150  VlsQueueSize: Int = 8,
151  RobSize: Int = 256,
152  dpParams: DispatchParameters = DispatchParameters(
153    IntDqSize = 16,
154    FpDqSize = 16,
155    LsDqSize = 16,
156    IntDqDeqWidth = 4,
157    FpDqDeqWidth = 4,
158    LsDqDeqWidth = 4
159  ),
160  exuParameters: ExuParameters = ExuParameters(
161    JmpCnt = 1,
162    AluCnt = 4,
163    MulCnt = 0,
164    MduCnt = 2,
165    FmacCnt = 4,
166    FmiscCnt = 2,
167    FmiscDivSqrtCnt = 0,
168    LduCnt = 2,
169    StuCnt = 2
170  ),
171  prefetcher: Option[PrefetcherParams] = Some(SMSParams()),
172  LoadPipelineWidth: Int = 2,
173  StorePipelineWidth: Int = 2,
174  VecMemSrcInWidth: Int = 2,
175  VecMemInstWbWidth: Int = 1,
176  VecMemDispatchWidth: Int = 1,
177  StoreBufferSize: Int = 16,
178  StoreBufferThreshold: Int = 7,
179  EnsbufferWidth: Int = 2,
180  UncacheBufferSize: Int = 4,
181  EnableLoadToLoadForward: Boolean = true,
182  EnableFastForward: Boolean = true,
183  EnableLdVioCheckAfterReset: Boolean = true,
184  EnableSoftPrefetchAfterReset: Boolean = true,
185  EnableCacheErrorAfterReset: Boolean = true,
186  EnableAccurateLoadError: Boolean = true,
187  EnableUncacheWriteOutstanding: Boolean = false,
188  EnableStorePrefetchAtIssue: Boolean = false,
189  EnableStorePrefetchAtCommit: Boolean = false,
190  EnableAtCommitMissTrigger: Boolean = true,
191  EnableStorePrefetchSMS: Boolean = false,
192  EnableStorePrefetchSPB: Boolean = false,
193  MMUAsidLen: Int = 16, // max is 16, 0 is not supported now
194  ReSelectLen: Int = 7, // load replay queue replay select counter len
195  iwpuParameters: WPUParameters = WPUParameters(
196    enWPU = false,
197    algoName = "mmru",
198    isICache = true,
199  ),
200  dwpuParameters: WPUParameters = WPUParameters(
201    enWPU = false,
202    algoName = "mmru",
203    enCfPred = false,
204    isICache = false,
205  ),
206  itlbParameters: TLBParameters = TLBParameters(
207    name = "itlb",
208    fetchi = true,
209    useDmode = false,
210    NWays = 48,
211  ),
212  itlbPortNum: Int = 2 + ICacheParameters().prefetchPipeNum + 1,
213  ipmpPortNum: Int = 2 + ICacheParameters().prefetchPipeNum + 1,
214  ldtlbParameters: TLBParameters = TLBParameters(
215    name = "ldtlb",
216    NWays = 48,
217    outReplace = false,
218    partialStaticPMP = true,
219    outsideRecvFlush = true,
220    saveLevel = true
221  ),
222  sttlbParameters: TLBParameters = TLBParameters(
223    name = "sttlb",
224    NWays = 48,
225    outReplace = false,
226    partialStaticPMP = true,
227    outsideRecvFlush = true,
228    saveLevel = true
229  ),
230  pftlbParameters: TLBParameters = TLBParameters(
231    name = "pftlb",
232    NWays = 48,
233    outReplace = false,
234    partialStaticPMP = true,
235    outsideRecvFlush = true,
236    saveLevel = true
237  ),
238  refillBothTlb: Boolean = false,
239  btlbParameters: TLBParameters = TLBParameters(
240    name = "btlb",
241    NWays = 48,
242  ),
243  l2tlbParameters: L2TLBParameters = L2TLBParameters(),
244  NumPerfCounters: Int = 16,
245  icacheParameters: ICacheParameters = ICacheParameters(
246    tagECC = Some("parity"),
247    dataECC = Some("parity"),
248    replacer = Some("setplru"),
249    nMissEntries = 2,
250    nProbeEntries = 2,
251    nPrefetchEntries = 12,
252    nPrefBufferEntries = 32,
253    hasPrefetch = true,
254  ),
255  dcacheParametersOpt: Option[DCacheParameters] = Some(DCacheParameters(
256    tagECC = Some("secded"),
257    dataECC = Some("secded"),
258    replacer = Some("setplru"),
259    nMissEntries = 16,
260    nProbeEntries = 8,
261    nReleaseEntries = 18,
262    nMaxPrefetchEntry = 6,
263  )),
264  L2CacheParamsOpt: Option[L2Param] = Some(L2Param(
265    name = "l2",
266    ways = 8,
267    sets = 1024, // default 512KB L2
268    prefetch = Some(coupledL2.prefetch.PrefetchReceiverParams())
269  )),
270  L2NBanks: Int = 1,
271  usePTWRepeater: Boolean = false,
272  softTLB: Boolean = false, // dpi-c l1tlb debug only
273  softPTW: Boolean = false, // dpi-c l2tlb debug only
274  softPTWDelay: Int = 1
275){
276  val allHistLens = SCHistLens ++ ITTageTableInfos.map(_._2) ++ TageTableInfos.map(_._2) :+ UbtbGHRLength
277  val HistoryLength = allHistLens.max + numBr * FtqSize + 9 // 256 for the predictor configs now
278
279  val loadExuConfigs = Seq.fill(exuParameters.LduCnt)(LdExeUnitCfg)
280  val storeExuConfigs = Seq.fill(exuParameters.StuCnt)(StaExeUnitCfg) ++ Seq.fill(exuParameters.StuCnt)(StdExeUnitCfg)
281
282  val intExuConfigs = (Seq.fill(exuParameters.AluCnt)(AluExeUnitCfg) ++
283    Seq.fill(exuParameters.MduCnt)(MulDivExeUnitCfg) :+ JumpCSRExeUnitCfg)
284
285  val fpExuConfigs =
286    Seq.fill(exuParameters.FmacCnt)(FmacExeUnitCfg) ++
287      Seq.fill(exuParameters.FmiscCnt)(FmiscExeUnitCfg)
288
289  val exuConfigs: Seq[ExuConfig] = intExuConfigs ++ fpExuConfigs ++ loadExuConfigs ++ storeExuConfigs
290}
291
292case object DebugOptionsKey extends Field[DebugOptions]
293
294case class DebugOptions
295(
296  FPGAPlatform: Boolean = false,
297  EnableDifftest: Boolean = false,
298  AlwaysBasicDiff: Boolean = true,
299  EnableDebug: Boolean = false,
300  EnablePerfDebug: Boolean = true,
301  UseDRAMSim: Boolean = false,
302  EnableConstantin: Boolean = false,
303  EnableChiselDB: Boolean = false,
304  AlwaysBasicDB: Boolean = true,
305  EnableRollingDB: Boolean = false
306)
307
308trait HasXSParameter {
309
310  implicit val p: Parameters
311
312  val PAddrBits = p(SoCParamsKey).PAddrBits // PAddrBits is Phyical Memory addr bits
313
314  val coreParams = p(XSCoreParamsKey)
315  val env = p(DebugOptionsKey)
316
317  val XLEN = coreParams.XLEN
318  val VLEN = coreParams.VLEN
319  val minFLen = 32
320  val fLen = 64
321  def xLen = XLEN
322
323  val HasMExtension = coreParams.HasMExtension
324  val HasCExtension = coreParams.HasCExtension
325  val HasDiv = coreParams.HasDiv
326  val HasIcache = coreParams.HasICache
327  val HasDcache = coreParams.HasDCache
328  val AddrBits = coreParams.AddrBits // AddrBits is used in some cases
329  val VAddrBits = coreParams.VAddrBits // VAddrBits is Virtual Memory addr bits
330  val AsidLength = coreParams.AsidLength
331  val ReSelectLen = coreParams.ReSelectLen
332  val AddrBytes = AddrBits / 8 // unused
333  val DataBits = XLEN
334  val DataBytes = DataBits / 8
335  val VDataBytes = VLEN / 8
336  val HasFPU = coreParams.HasFPU
337  val HasCustomCSRCacheOp = coreParams.HasCustomCSRCacheOp
338  val FetchWidth = coreParams.FetchWidth
339  val PredictWidth = FetchWidth * (if (HasCExtension) 2 else 1)
340  val EnableBPU = coreParams.EnableBPU
341  val EnableBPD = coreParams.EnableBPD // enable backing predictor(like Tage) in BPUStage3
342  val EnableRAS = coreParams.EnableRAS
343  val EnableLB = coreParams.EnableLB
344  val EnableLoop = coreParams.EnableLoop
345  val EnableSC = coreParams.EnableSC
346  val EnbaleTlbDebug = coreParams.EnbaleTlbDebug
347  val HistoryLength = coreParams.HistoryLength
348  val EnableGHistDiff = coreParams.EnableGHistDiff
349  val EnableCommitGHistDiff = coreParams.EnableCommitGHistDiff
350  val UbtbGHRLength = coreParams.UbtbGHRLength
351  val UbtbSize = coreParams.UbtbSize
352  val EnableFauFTB = coreParams.EnableFauFTB
353  val FtbSize = coreParams.FtbSize
354  val FtbWays = coreParams.FtbWays
355  val RasSize = coreParams.RasSize
356  val RasSpecSize = coreParams.RasSpecSize
357  val RasCtrSize = coreParams.RasCtrSize
358
359  def getBPDComponents(resp_in: BranchPredictionResp, p: Parameters) = {
360    coreParams.branchPredictor(resp_in, p)
361  }
362  val numBr = coreParams.numBr
363  val TageTableInfos = coreParams.TageTableInfos
364  val TageBanks = coreParams.numBr
365  val SCNRows = coreParams.SCNRows
366  val SCCtrBits = coreParams.SCCtrBits
367  val SCHistLens = coreParams.SCHistLens
368  val SCNTables = coreParams.SCNTables
369
370  val SCTableInfos = Seq.fill(SCNTables)((SCNRows, SCCtrBits)) zip SCHistLens map {
371    case ((n, cb), h) => (n, cb, h)
372  }
373  val ITTageTableInfos = coreParams.ITTageTableInfos
374  type FoldedHistoryInfo = Tuple2[Int, Int]
375  val foldedGHistInfos =
376    (TageTableInfos.map{ case (nRows, h, t) =>
377      if (h > 0)
378        Set((h, min(log2Ceil(nRows/numBr), h)), (h, min(h, t)), (h, min(h, t-1)))
379      else
380        Set[FoldedHistoryInfo]()
381    }.reduce(_++_).toSet ++
382    SCTableInfos.map{ case (nRows, _, h) =>
383      if (h > 0)
384        Set((h, min(log2Ceil(nRows/TageBanks), h)))
385      else
386        Set[FoldedHistoryInfo]()
387    }.reduce(_++_).toSet ++
388    ITTageTableInfos.map{ case (nRows, h, t) =>
389      if (h > 0)
390        Set((h, min(log2Ceil(nRows), h)), (h, min(h, t)), (h, min(h, t-1)))
391      else
392        Set[FoldedHistoryInfo]()
393    }.reduce(_++_) ++
394      Set[FoldedHistoryInfo]((UbtbGHRLength, log2Ceil(UbtbSize)))
395    ).toList
396
397
398
399  val CacheLineSize = coreParams.CacheLineSize
400  val CacheLineHalfWord = CacheLineSize / 16
401  val ExtHistoryLength = HistoryLength + 64
402  val IBufSize = coreParams.IBufSize
403  val DecodeWidth = coreParams.DecodeWidth
404  val RenameWidth = coreParams.RenameWidth
405  val CommitWidth = coreParams.CommitWidth
406  val EnableRenameSnapshot = coreParams.EnableRenameSnapshot
407  val RenameSnapshotNum = coreParams.RenameSnapshotNum
408  val FtqSize = coreParams.FtqSize
409  val IssQueSize = coreParams.IssQueSize
410  val EnableLoadFastWakeUp = coreParams.EnableLoadFastWakeUp
411  val NRPhyRegs = coreParams.NRPhyRegs
412  val PhyRegIdxWidth = log2Up(NRPhyRegs)
413  val RobSize = coreParams.RobSize
414  val IntRefCounterWidth = log2Ceil(RobSize)
415  val VirtualLoadQueueSize = coreParams.VirtualLoadQueueSize
416  val LoadQueueRARSize = coreParams.LoadQueueRARSize
417  val LoadQueueRAWSize = coreParams.LoadQueueRAWSize
418  val RollbackGroupSize = coreParams.RollbackGroupSize
419  val LoadQueueReplaySize = coreParams.LoadQueueReplaySize
420  val LoadUncacheBufferSize = coreParams.LoadUncacheBufferSize
421  val LoadQueueNWriteBanks = coreParams.LoadQueueNWriteBanks
422  val StoreQueueSize = coreParams.StoreQueueSize
423  val StoreQueueNWriteBanks = coreParams.StoreQueueNWriteBanks
424  val StoreQueueForwardWithMask = coreParams.StoreQueueForwardWithMask
425  val VlsQueueSize = coreParams.VlsQueueSize
426  val dpParams = coreParams.dpParams
427  val exuParameters = coreParams.exuParameters
428  val NRMemReadPorts = exuParameters.LduCnt + 2 * exuParameters.StuCnt
429  val NRIntReadPorts = 2 * exuParameters.AluCnt + NRMemReadPorts
430  val NRIntWritePorts = exuParameters.AluCnt + exuParameters.MduCnt + exuParameters.LduCnt
431  val NRFpReadPorts = 3 * exuParameters.FmacCnt + exuParameters.StuCnt
432  val NRFpWritePorts = exuParameters.FpExuCnt + exuParameters.LduCnt
433  val LoadPipelineWidth = coreParams.LoadPipelineWidth
434  val StorePipelineWidth = coreParams.StorePipelineWidth
435  val VecMemSrcInWidth = coreParams.VecMemSrcInWidth
436  val VecMemInstWbWidth = coreParams.VecMemInstWbWidth
437  val VecMemDispatchWidth = coreParams.VecMemDispatchWidth
438  val StoreBufferSize = coreParams.StoreBufferSize
439  val StoreBufferThreshold = coreParams.StoreBufferThreshold
440  val EnsbufferWidth = coreParams.EnsbufferWidth
441  val UncacheBufferSize = coreParams.UncacheBufferSize
442  val EnableLoadToLoadForward = coreParams.EnableLoadToLoadForward
443  val EnableFastForward = coreParams.EnableFastForward
444  val EnableLdVioCheckAfterReset = coreParams.EnableLdVioCheckAfterReset
445  val EnableSoftPrefetchAfterReset = coreParams.EnableSoftPrefetchAfterReset
446  val EnableCacheErrorAfterReset = coreParams.EnableCacheErrorAfterReset
447  val EnableAccurateLoadError = coreParams.EnableAccurateLoadError
448  val EnableUncacheWriteOutstanding = coreParams.EnableUncacheWriteOutstanding
449  val EnableStorePrefetchAtIssue = coreParams.EnableStorePrefetchAtIssue
450  val EnableStorePrefetchAtCommit = coreParams.EnableStorePrefetchAtCommit
451  val EnableAtCommitMissTrigger = coreParams.EnableAtCommitMissTrigger
452  val EnableStorePrefetchSMS = coreParams.EnableStorePrefetchSMS
453  val EnableStorePrefetchSPB = coreParams.EnableStorePrefetchSPB
454  val asidLen = coreParams.MMUAsidLen
455  val BTLBWidth = coreParams.LoadPipelineWidth + coreParams.StorePipelineWidth
456  val refillBothTlb = coreParams.refillBothTlb
457  val iwpuParam = coreParams.iwpuParameters
458  val dwpuParam = coreParams.dwpuParameters
459  val itlbParams = coreParams.itlbParameters
460  val ldtlbParams = coreParams.ldtlbParameters
461  val sttlbParams = coreParams.sttlbParameters
462  val pftlbParams = coreParams.pftlbParameters
463  val btlbParams = coreParams.btlbParameters
464  val l2tlbParams = coreParams.l2tlbParameters
465  val NumPerfCounters = coreParams.NumPerfCounters
466
467  val NumRs = (exuParameters.JmpCnt+1)/2 + (exuParameters.AluCnt+1)/2 + (exuParameters.MulCnt+1)/2 +
468              (exuParameters.MduCnt+1)/2 + (exuParameters.FmacCnt+1)/2 +  + (exuParameters.FmiscCnt+1)/2 +
469              (exuParameters.FmiscDivSqrtCnt+1)/2 + (exuParameters.LduCnt+1)/2 +
470              (exuParameters.StuCnt+1)/2 + (exuParameters.StuCnt+1)/2
471
472  val instBytes = if (HasCExtension) 2 else 4
473  val instOffsetBits = log2Ceil(instBytes)
474
475  val icacheParameters = coreParams.icacheParameters
476  val dcacheParameters = coreParams.dcacheParametersOpt.getOrElse(DCacheParameters())
477
478  // dcache block cacheline when lr for LRSCCycles - LRSCBackOff cycles
479  // for constrained LR/SC loop
480  val LRSCCycles = 64
481  // for lr storm
482  val LRSCBackOff = 8
483
484  // cache hierarchy configurations
485  val l1BusDataWidth = 256
486
487  // load violation predict
488  val ResetTimeMax2Pow = 20 //1078576
489  val ResetTimeMin2Pow = 10 //1024
490  // wait table parameters
491  val WaitTableSize = 1024
492  val MemPredPCWidth = log2Up(WaitTableSize)
493  val LWTUse2BitCounter = true
494  // store set parameters
495  val SSITSize = WaitTableSize
496  val LFSTSize = 32
497  val SSIDWidth = log2Up(LFSTSize)
498  val LFSTWidth = 4
499  val StoreSetEnable = true // LWT will be disabled if SS is enabled
500  val LFSTEnable = false
501  val loadExuConfigs = coreParams.loadExuConfigs
502  val storeExuConfigs = coreParams.storeExuConfigs
503
504  val intExuConfigs = coreParams.intExuConfigs
505
506  val fpExuConfigs = coreParams.fpExuConfigs
507
508  val exuConfigs = coreParams.exuConfigs
509
510  val PCntIncrStep: Int = 6
511  val numPCntHc: Int = 25
512  val numPCntPtw: Int = 19
513
514  val numCSRPCntFrontend = 8
515  val numCSRPCntCtrl     = 8
516  val numCSRPCntLsu      = 8
517  val numCSRPCntHc       = 5
518}
519