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(
width = Dump("HTIF_WIDTH", 16),
nSCR = 64,
nUncoreSCR = 64,
csrDataBits = site(XLen),
offsetBits = site(CacheBlockOffsetBits),
nCores = site(NTiles))
case GlobalScrMap => new ScrMap
//Memory Parameters
case PAddrBits => 32
case PgIdxBits => 12

View File

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