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