rocket: put a Fragmenter infront of the scratchpad
This commit is contained in:
parent
a73aa351ca
commit
b68bc449e7
@ -61,7 +61,7 @@ class RocketTile(implicit p: Parameters) extends LazyTile {
|
|||||||
val slave = if (p(DataScratchpadSize) == 0) None else Some(TLOutputNode())
|
val slave = if (p(DataScratchpadSize) == 0) None else Some(TLOutputNode())
|
||||||
val scratch = if (p(DataScratchpadSize) == 0) None else Some(LazyModule(new ScratchpadSlavePort()(dcacheParams)))
|
val scratch = if (p(DataScratchpadSize) == 0) None else Some(LazyModule(new ScratchpadSlavePort()(dcacheParams)))
|
||||||
|
|
||||||
(slave zip scratch) foreach { case (node, lm) => node := lm.node }
|
(slave zip scratch) foreach { case (node, lm) => node := TLFragmenter(p(XLen)/8, p(RowBits)/8)(lm.node) }
|
||||||
|
|
||||||
lazy val module = new TileImp(this) {
|
lazy val module = new TileImp(this) {
|
||||||
val io = new TileIO(bc, slave)
|
val io = new TileIO(bc, slave)
|
||||||
|
Loading…
Reference in New Issue
Block a user