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 MMUAsidLen: Int = 16, // max is 16, 0 is not supported now 187 ReSelectLen: Int = 7, // load replay queue replay select counter len 188 iwpuParameters: WPUParameters = WPUParameters( 189 enWPU = false, 190 algoName = "mmru", 191 isICache = true, 192 ), 193 dwpuParameters: WPUParameters = WPUParameters( 194 enWPU = false, 195 algoName = "mmru", 196 enCfPred = false, 197 isICache = false, 198 ), 199 itlbParameters: TLBParameters = TLBParameters( 200 name = "itlb", 201 fetchi = true, 202 useDmode = false, 203 normalNWays = 32, 204 normalReplacer = Some("plru"), 205 superNWays = 4, 206 superReplacer = Some("plru") 207 ), 208 itlbPortNum: Int = 2 + ICacheParameters().prefetchPipeNum + 1, 209 ipmpPortNum: Int = 2 + ICacheParameters().prefetchPipeNum + 1, 210 ldtlbParameters: TLBParameters = TLBParameters( 211 name = "ldtlb", 212 normalNSets = 64, 213 normalNWays = 1, 214 normalAssociative = "sa", 215 normalReplacer = Some("setplru"), 216 superNWays = 16, 217 normalAsVictim = true, 218 outReplace = false, 219 partialStaticPMP = true, 220 outsideRecvFlush = true, 221 saveLevel = true 222 ), 223 sttlbParameters: TLBParameters = TLBParameters( 224 name = "sttlb", 225 normalNSets = 64, 226 normalNWays = 1, 227 normalAssociative = "sa", 228 normalReplacer = Some("setplru"), 229 superNWays = 16, 230 normalAsVictim = true, 231 outReplace = false, 232 partialStaticPMP = true, 233 outsideRecvFlush = true, 234 saveLevel = true 235 ), 236 pftlbParameters: TLBParameters = TLBParameters( 237 name = "pftlb", 238 normalNSets = 64, 239 normalNWays = 1, 240 normalAssociative = "sa", 241 normalReplacer = Some("setplru"), 242 superNWays = 16, 243 normalAsVictim = true, 244 outReplace = false, 245 partialStaticPMP = true, 246 outsideRecvFlush = true, 247 saveLevel = true 248 ), 249 refillBothTlb: Boolean = false, 250 btlbParameters: TLBParameters = TLBParameters( 251 name = "btlb", 252 normalNSets = 1, 253 normalNWays = 64, 254 superNWays = 4, 255 ), 256 l2tlbParameters: L2TLBParameters = L2TLBParameters(), 257 NumPerfCounters: Int = 16, 258 icacheParameters: ICacheParameters = ICacheParameters( 259 tagECC = Some("parity"), 260 dataECC = Some("parity"), 261 replacer = Some("setplru"), 262 nMissEntries = 2, 263 nProbeEntries = 2, 264 nPrefetchEntries = 12, 265 nPrefBufferEntries = 64, 266 hasPrefetch = true, 267 ), 268 dcacheParametersOpt: Option[DCacheParameters] = Some(DCacheParameters( 269 tagECC = Some("secded"), 270 dataECC = Some("secded"), 271 replacer = Some("setplru"), 272 nMissEntries = 16, 273 nProbeEntries = 8, 274 nReleaseEntries = 18 275 )), 276 L2CacheParamsOpt: Option[L2Param] = Some(L2Param( 277 name = "l2", 278 ways = 8, 279 sets = 1024, // default 512KB L2 280 prefetch = Some(coupledL2.prefetch.PrefetchReceiverParams()) 281 )), 282 L2NBanks: Int = 1, 283 usePTWRepeater: Boolean = false, 284 softTLB: Boolean = false, // dpi-c l1tlb debug only 285 softPTW: Boolean = false, // dpi-c l2tlb debug only 286 softPTWDelay: Int = 1 287){ 288 val allHistLens = SCHistLens ++ ITTageTableInfos.map(_._2) ++ TageTableInfos.map(_._2) :+ UbtbGHRLength 289 val HistoryLength = allHistLens.max + numBr * FtqSize + 9 // 256 for the predictor configs now 290 291 val loadExuConfigs = Seq.fill(exuParameters.LduCnt)(LdExeUnitCfg) 292 val storeExuConfigs = Seq.fill(exuParameters.StuCnt)(StaExeUnitCfg) ++ Seq.fill(exuParameters.StuCnt)(StdExeUnitCfg) 293 294 val intExuConfigs = (Seq.fill(exuParameters.AluCnt)(AluExeUnitCfg) ++ 295 Seq.fill(exuParameters.MduCnt)(MulDivExeUnitCfg) :+ JumpCSRExeUnitCfg) 296 297 val fpExuConfigs = 298 Seq.fill(exuParameters.FmacCnt)(FmacExeUnitCfg) ++ 299 Seq.fill(exuParameters.FmiscCnt)(FmiscExeUnitCfg) 300 301 val exuConfigs: Seq[ExuConfig] = intExuConfigs ++ fpExuConfigs ++ loadExuConfigs ++ storeExuConfigs 302} 303 304case object DebugOptionsKey extends Field[DebugOptions] 305 306case class DebugOptions 307( 308 FPGAPlatform: Boolean = false, 309 EnableDifftest: Boolean = false, 310 AlwaysBasicDiff: Boolean = true, 311 EnableDebug: Boolean = false, 312 EnablePerfDebug: Boolean = true, 313 UseDRAMSim: Boolean = false, 314 EnableConstantin: Boolean = false, 315 EnableChiselDB: Boolean = false, 316 AlwaysBasicDB: Boolean = true, 317) 318 319trait HasXSParameter { 320 321 implicit val p: Parameters 322 323 val PAddrBits = p(SoCParamsKey).PAddrBits // PAddrBits is Phyical Memory addr bits 324 325 val coreParams = p(XSCoreParamsKey) 326 val env = p(DebugOptionsKey) 327 328 val XLEN = coreParams.XLEN 329 val VLEN = coreParams.VLEN 330 val minFLen = 32 331 val fLen = 64 332 def xLen = XLEN 333 334 val HasMExtension = coreParams.HasMExtension 335 val HasCExtension = coreParams.HasCExtension 336 val HasDiv = coreParams.HasDiv 337 val HasIcache = coreParams.HasICache 338 val HasDcache = coreParams.HasDCache 339 val AddrBits = coreParams.AddrBits // AddrBits is used in some cases 340 val VAddrBits = coreParams.VAddrBits // VAddrBits is Virtual Memory addr bits 341 val AsidLength = coreParams.AsidLength 342 val ReSelectLen = coreParams.ReSelectLen 343 val AddrBytes = AddrBits / 8 // unused 344 val DataBits = XLEN 345 val DataBytes = DataBits / 8 346 val VDataBytes = VLEN / 8 347 val HasFPU = coreParams.HasFPU 348 val HasCustomCSRCacheOp = coreParams.HasCustomCSRCacheOp 349 val FetchWidth = coreParams.FetchWidth 350 val PredictWidth = FetchWidth * (if (HasCExtension) 2 else 1) 351 val EnableBPU = coreParams.EnableBPU 352 val EnableBPD = coreParams.EnableBPD // enable backing predictor(like Tage) in BPUStage3 353 val EnableRAS = coreParams.EnableRAS 354 val EnableLB = coreParams.EnableLB 355 val EnableLoop = coreParams.EnableLoop 356 val EnableSC = coreParams.EnableSC 357 val EnbaleTlbDebug = coreParams.EnbaleTlbDebug 358 val HistoryLength = coreParams.HistoryLength 359 val EnableGHistDiff = coreParams.EnableGHistDiff 360 val EnableCommitGHistDiff = coreParams.EnableCommitGHistDiff 361 val UbtbGHRLength = coreParams.UbtbGHRLength 362 val UbtbSize = coreParams.UbtbSize 363 val EnableFauFTB = coreParams.EnableFauFTB 364 val FtbSize = coreParams.FtbSize 365 val FtbWays = coreParams.FtbWays 366 val RasSize = coreParams.RasSize 367 368 def getBPDComponents(resp_in: BranchPredictionResp, p: Parameters) = { 369 coreParams.branchPredictor(resp_in, p) 370 } 371 val numBr = coreParams.numBr 372 val TageTableInfos = coreParams.TageTableInfos 373 val TageBanks = coreParams.numBr 374 val SCNRows = coreParams.SCNRows 375 val SCCtrBits = coreParams.SCCtrBits 376 val SCHistLens = coreParams.SCHistLens 377 val SCNTables = coreParams.SCNTables 378 379 val SCTableInfos = Seq.fill(SCNTables)((SCNRows, SCCtrBits)) zip SCHistLens map { 380 case ((n, cb), h) => (n, cb, h) 381 } 382 val ITTageTableInfos = coreParams.ITTageTableInfos 383 type FoldedHistoryInfo = Tuple2[Int, Int] 384 val foldedGHistInfos = 385 (TageTableInfos.map{ case (nRows, h, t) => 386 if (h > 0) 387 Set((h, min(log2Ceil(nRows/numBr), h)), (h, min(h, t)), (h, min(h, t-1))) 388 else 389 Set[FoldedHistoryInfo]() 390 }.reduce(_++_).toSet ++ 391 SCTableInfos.map{ case (nRows, _, h) => 392 if (h > 0) 393 Set((h, min(log2Ceil(nRows/TageBanks), h))) 394 else 395 Set[FoldedHistoryInfo]() 396 }.reduce(_++_).toSet ++ 397 ITTageTableInfos.map{ case (nRows, h, t) => 398 if (h > 0) 399 Set((h, min(log2Ceil(nRows), h)), (h, min(h, t)), (h, min(h, t-1))) 400 else 401 Set[FoldedHistoryInfo]() 402 }.reduce(_++_) ++ 403 Set[FoldedHistoryInfo]((UbtbGHRLength, log2Ceil(UbtbSize))) 404 ).toList 405 406 407 408 val CacheLineSize = coreParams.CacheLineSize 409 val CacheLineHalfWord = CacheLineSize / 16 410 val ExtHistoryLength = HistoryLength + 64 411 val IBufSize = coreParams.IBufSize 412 val DecodeWidth = coreParams.DecodeWidth 413 val RenameWidth = coreParams.RenameWidth 414 val CommitWidth = coreParams.CommitWidth 415 val EnableRenameSnapshot = coreParams.EnableRenameSnapshot 416 val RenameSnapshotNum = coreParams.RenameSnapshotNum 417 val FtqSize = coreParams.FtqSize 418 val IssQueSize = coreParams.IssQueSize 419 val EnableLoadFastWakeUp = coreParams.EnableLoadFastWakeUp 420 val NRPhyRegs = coreParams.NRPhyRegs 421 val PhyRegIdxWidth = log2Up(NRPhyRegs) 422 val RobSize = coreParams.RobSize 423 val IntRefCounterWidth = log2Ceil(RobSize) 424 val VirtualLoadQueueSize = coreParams.VirtualLoadQueueSize 425 val LoadQueueRARSize = coreParams.LoadQueueRARSize 426 val LoadQueueRAWSize = coreParams.LoadQueueRAWSize 427 val RollbackGroupSize = coreParams.RollbackGroupSize 428 val LoadQueueReplaySize = coreParams.LoadQueueReplaySize 429 val LoadUncacheBufferSize = coreParams.LoadUncacheBufferSize 430 val LoadQueueNWriteBanks = coreParams.LoadQueueNWriteBanks 431 val StoreQueueSize = coreParams.StoreQueueSize 432 val StoreQueueNWriteBanks = coreParams.StoreQueueNWriteBanks 433 val StoreQueueForwardWithMask = coreParams.StoreQueueForwardWithMask 434 val VlsQueueSize = coreParams.VlsQueueSize 435 val dpParams = coreParams.dpParams 436 val exuParameters = coreParams.exuParameters 437 val NRMemReadPorts = exuParameters.LduCnt + 2 * exuParameters.StuCnt 438 val NRIntReadPorts = 2 * exuParameters.AluCnt + NRMemReadPorts 439 val NRIntWritePorts = exuParameters.AluCnt + exuParameters.MduCnt + exuParameters.LduCnt 440 val NRFpReadPorts = 3 * exuParameters.FmacCnt + exuParameters.StuCnt 441 val NRFpWritePorts = exuParameters.FpExuCnt + exuParameters.LduCnt 442 val LoadPipelineWidth = coreParams.LoadPipelineWidth 443 val StorePipelineWidth = coreParams.StorePipelineWidth 444 val VecMemSrcInWidth = coreParams.VecMemSrcInWidth 445 val VecMemInstWbWidth = coreParams.VecMemInstWbWidth 446 val VecMemDispatchWidth = coreParams.VecMemDispatchWidth 447 val StoreBufferSize = coreParams.StoreBufferSize 448 val StoreBufferThreshold = coreParams.StoreBufferThreshold 449 val EnsbufferWidth = coreParams.EnsbufferWidth 450 val UncacheBufferSize = coreParams.UncacheBufferSize 451 val EnableLoadToLoadForward = coreParams.EnableLoadToLoadForward 452 val EnableFastForward = coreParams.EnableFastForward 453 val EnableLdVioCheckAfterReset = coreParams.EnableLdVioCheckAfterReset 454 val EnableSoftPrefetchAfterReset = coreParams.EnableSoftPrefetchAfterReset 455 val EnableCacheErrorAfterReset = coreParams.EnableCacheErrorAfterReset 456 val EnableAccurateLoadError = coreParams.EnableAccurateLoadError 457 val EnableUncacheWriteOutstanding = coreParams.EnableUncacheWriteOutstanding 458 val asidLen = coreParams.MMUAsidLen 459 val BTLBWidth = coreParams.LoadPipelineWidth + coreParams.StorePipelineWidth 460 val refillBothTlb = coreParams.refillBothTlb 461 val iwpuParam = coreParams.iwpuParameters 462 val dwpuParam = coreParams.dwpuParameters 463 val itlbParams = coreParams.itlbParameters 464 val ldtlbParams = coreParams.ldtlbParameters 465 val sttlbParams = coreParams.sttlbParameters 466 val pftlbParams = coreParams.pftlbParameters 467 val btlbParams = coreParams.btlbParameters 468 val l2tlbParams = coreParams.l2tlbParameters 469 val NumPerfCounters = coreParams.NumPerfCounters 470 471 val NumRs = (exuParameters.JmpCnt+1)/2 + (exuParameters.AluCnt+1)/2 + (exuParameters.MulCnt+1)/2 + 472 (exuParameters.MduCnt+1)/2 + (exuParameters.FmacCnt+1)/2 + + (exuParameters.FmiscCnt+1)/2 + 473 (exuParameters.FmiscDivSqrtCnt+1)/2 + (exuParameters.LduCnt+1)/2 + 474 (exuParameters.StuCnt+1)/2 + (exuParameters.StuCnt+1)/2 475 476 val instBytes = if (HasCExtension) 2 else 4 477 val instOffsetBits = log2Ceil(instBytes) 478 479 val icacheParameters = coreParams.icacheParameters 480 val dcacheParameters = coreParams.dcacheParametersOpt.getOrElse(DCacheParameters()) 481 482 // dcache block cacheline when lr for LRSCCycles - LRSCBackOff cycles 483 // for constrained LR/SC loop 484 val LRSCCycles = 64 485 // for lr storm 486 val LRSCBackOff = 8 487 488 // cache hierarchy configurations 489 val l1BusDataWidth = 256 490 491 // load violation predict 492 val ResetTimeMax2Pow = 20 //1078576 493 val ResetTimeMin2Pow = 10 //1024 494 // wait table parameters 495 val WaitTableSize = 1024 496 val MemPredPCWidth = log2Up(WaitTableSize) 497 val LWTUse2BitCounter = true 498 // store set parameters 499 val SSITSize = WaitTableSize 500 val LFSTSize = 32 501 val SSIDWidth = log2Up(LFSTSize) 502 val LFSTWidth = 4 503 val StoreSetEnable = true // LWT will be disabled if SS is enabled 504 val LFSTEnable = false 505 val loadExuConfigs = coreParams.loadExuConfigs 506 val storeExuConfigs = coreParams.storeExuConfigs 507 508 val intExuConfigs = coreParams.intExuConfigs 509 510 val fpExuConfigs = coreParams.fpExuConfigs 511 512 val exuConfigs = coreParams.exuConfigs 513 514 val PCntIncrStep: Int = 6 515 val numPCntHc: Int = 25 516 val numPCntPtw: Int = 19 517 518 val numCSRPCntFrontend = 8 519 val numCSRPCntCtrl = 8 520 val numCSRPCntLsu = 8 521 val numCSRPCntHc = 5 522} 523