fix TL width adapter and make it easier to switch inner data width
This commit is contained in:
parent
a809a1712a
commit
40ab0a7960
@ -105,6 +105,8 @@ class BaseConfig extends Config (
|
|||||||
res append '\u0000'
|
res append '\u0000'
|
||||||
res.toString.getBytes
|
res.toString.getBytes
|
||||||
}
|
}
|
||||||
|
lazy val innerDataBits = site(MIFDataBits)
|
||||||
|
lazy val innerDataBeats = (8 * site(CacheBlockBytes)) / innerDataBits
|
||||||
pname match {
|
pname match {
|
||||||
case HtifKey => HtifParameters(
|
case HtifKey => HtifParameters(
|
||||||
width = Dump("HTIF_WIDTH", 16),
|
width = Dump("HTIF_WIDTH", 16),
|
||||||
@ -262,7 +264,7 @@ class BaseConfig extends Config (
|
|||||||
if (site(BuildRoCC).isEmpty) 1 else site(RoccMaxTaggedMemXacts)),
|
if (site(BuildRoCC).isEmpty) 1 else site(RoccMaxTaggedMemXacts)),
|
||||||
maxClientsPerPort = if (site(BuildRoCC).isEmpty) 1 else 2,
|
maxClientsPerPort = if (site(BuildRoCC).isEmpty) 1 else 2,
|
||||||
maxManagerXacts = site(NAcquireTransactors) + 2,
|
maxManagerXacts = site(NAcquireTransactors) + 2,
|
||||||
dataBeats = site(MIFDataBeats),
|
dataBeats = innerDataBeats,
|
||||||
dataBits = site(CacheBlockBytes)*8)
|
dataBits = site(CacheBlockBytes)*8)
|
||||||
case TLKey("L2toMC") =>
|
case TLKey("L2toMC") =>
|
||||||
TileLinkParameters(
|
TileLinkParameters(
|
||||||
@ -274,7 +276,7 @@ class BaseConfig extends Config (
|
|||||||
maxClientXacts = 1,
|
maxClientXacts = 1,
|
||||||
maxClientsPerPort = site(NAcquireTransactors) + 2,
|
maxClientsPerPort = site(NAcquireTransactors) + 2,
|
||||||
maxManagerXacts = 1,
|
maxManagerXacts = 1,
|
||||||
dataBeats = site(MIFDataBeats),
|
dataBeats = innerDataBeats,
|
||||||
dataBits = site(CacheBlockBytes)*8)
|
dataBits = site(CacheBlockBytes)*8)
|
||||||
case TLKey("Outermost") => site(TLKey("L2toMC")).copy(
|
case TLKey("Outermost") => site(TLKey("L2toMC")).copy(
|
||||||
maxClientXacts = site(NAcquireTransactors) + 2,
|
maxClientXacts = site(NAcquireTransactors) + 2,
|
||||||
@ -290,7 +292,7 @@ class BaseConfig extends Config (
|
|||||||
maxClientXacts = 4,
|
maxClientXacts = 4,
|
||||||
maxClientsPerPort = 1,
|
maxClientsPerPort = 1,
|
||||||
maxManagerXacts = 1,
|
maxManagerXacts = 1,
|
||||||
dataBeats = site(MIFDataBeats),
|
dataBeats = innerDataBeats,
|
||||||
dataBits = site(CacheBlockBytes) * 8)
|
dataBits = site(CacheBlockBytes) * 8)
|
||||||
}
|
}
|
||||||
case TLKey("MMIO_Outermost") => site(TLKey("L2toMMIO")).copy(dataBeats = site(MIFDataBeats))
|
case TLKey("MMIO_Outermost") => site(TLKey("L2toMMIO")).copy(dataBeats = site(MIFDataBeats))
|
||||||
|
2
uncore
2
uncore
@ -1 +1 @@
|
|||||||
Subproject commit 9298f4239ce9d94caf46fa09f997cdb8b2bfbf84
|
Subproject commit 2929d5384c54549d9af529643d2d4d61f9df626f
|
Loading…
Reference in New Issue
Block a user