1
0

add new parameters for new SCR file

This commit is contained in:
John Wright 2016-02-12 18:24:12 -08:00
parent 9fb2216548
commit 4dad5b8b32
2 changed files with 3 additions and 0 deletions

View File

@ -75,9 +75,11 @@ class DefaultConfig extends Config (
case HtifKey => HtifParameters( case HtifKey => HtifParameters(
width = Dump("HTIF_WIDTH", 16), width = Dump("HTIF_WIDTH", 16),
nSCR = 64, nSCR = 64,
nUncoreSCR = 64,
csrDataBits = site(XLen), csrDataBits = site(XLen),
offsetBits = site(CacheBlockOffsetBits), offsetBits = site(CacheBlockOffsetBits),
nCores = site(NTiles)) nCores = site(NTiles))
case GlobalScrMap => new ScrMap
//Memory Parameters //Memory Parameters
case PAddrBits => 32 case PAddrBits => 32
case PgIdxBits => 12 case PgIdxBits => 12

View File

@ -53,6 +53,7 @@ trait HasTopLevelParameters {
lazy val mifDataBeats = p(MIFDataBeats) lazy val mifDataBeats = p(MIFDataBeats)
lazy val xLen = p(XLen) lazy val xLen = p(XLen)
lazy val nSCR = p(HtifKey).nSCR lazy val nSCR = p(HtifKey).nSCR
lazy val nUncoreSCR = p(HtifKey).nUncoreSCR
lazy val scrAddrBits = log2Up(nSCR) lazy val scrAddrBits = log2Up(nSCR)
lazy val scrDataBits = 64 lazy val scrDataBits = 64
lazy val scrDataBytes = scrDataBits / 8 lazy val scrDataBytes = scrDataBits / 8