Parameters.scala (552d2d4e6b0713b2d649a82a85c360788e4b28bf) | Parameters.scala (5bd65c56355db1d4f5b92a3815df78273c01b892) |
---|---|
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 --- 568 unchanged lines hidden (view full) --- 577) 578 579trait HasXSParameter { 580 581 implicit val p: Parameters 582 583 def PAddrBits = p(SoCParamsKey).PAddrBits // PAddrBits is Phyical Memory addr bits 584 def PmemRanges = p(SoCParamsKey).PmemRanges | 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 --- 568 unchanged lines hidden (view full) --- 577) 578 579trait HasXSParameter { 580 581 implicit val p: Parameters 582 583 def PAddrBits = p(SoCParamsKey).PAddrBits // PAddrBits is Phyical Memory addr bits 584 def PmemRanges = p(SoCParamsKey).PmemRanges |
585 def PmemLowBounds = PmemRanges.unzip._1 586 def PmemHighBounds = PmemRanges.unzip._2 | |
587 final val PageOffsetWidth = 12 588 def NodeIDWidth = p(SoCParamsKey).NodeIDWidthList(p(CHIIssue)) // NodeID width among NoC 589 590 def coreParams = p(XSCoreParamsKey) 591 def env = p(DebugOptionsKey) 592 593 def ISABase = coreParams.ISABase 594 def ISAExtensions = coreParams.ISAExtensions --- 320 unchanged lines hidden --- | 585 final val PageOffsetWidth = 12 586 def NodeIDWidth = p(SoCParamsKey).NodeIDWidthList(p(CHIIssue)) // NodeID width among NoC 587 588 def coreParams = p(XSCoreParamsKey) 589 def env = p(DebugOptionsKey) 590 591 def ISABase = coreParams.ISABase 592 def ISAExtensions = coreParams.ISAExtensions --- 320 unchanged lines hidden --- |