1
0

coreplex: TilePortParams formatting

This commit is contained in:
Henry Cook 2017-10-11 00:29:11 -07:00
parent 1867a5b226
commit 1240cb275c

View File

@ -28,17 +28,18 @@ case class TileMasterPortParams(
val tile_master_fixer = LazyModule(new TLFIFOFixer(TLFIFOFixer.allUncacheable)) val tile_master_fixer = LazyModule(new TLFIFOFixer(TLFIFOFixer.allUncacheable))
val tile_master_buffer = LazyModule(new TLBufferChain(addBuffers)) val tile_master_buffer = LazyModule(new TLBufferChain(addBuffers))
tile_master_blocker.foreach { _.controlNode := coreplex.pbus.toVariableWidthSlaves }
val nodes = List( val nodes = List(
Some(tile_master_buffer.node), Some(tile_master_buffer.node),
Some(tile_master_fixer.node), Some(tile_master_fixer.node),
tile_master_blocker.map(_.node), tile_master_blocker.map(_.node),
tile_master_cork.map(_.node)).flatMap(b=>b) tile_master_cork.map(_.node)
).flatMap(b=>b)
nodes.init zip nodes.tail foreach { case(front, back) => front :=* back } nodes.init zip nodes.tail foreach { case(front, back) => front :=* back }
tile_master_blocker.foreach { _.controlNode := coreplex.pbus.toVariableWidthSlaves } () => TLNodeChain(in = nodes.last, out = nodes.head)
() => TLNodeChain(nodes.last, nodes.head)
} }
} }
@ -53,15 +54,16 @@ case class TileSlavePortParams(
val tile_slave_blocker = blockerParams.map(bp => LazyModule(new BusBlocker(bp))) val tile_slave_blocker = blockerParams.map(bp => LazyModule(new BusBlocker(bp)))
val tile_slave_buffer = LazyModule(new TLBufferChain(addBuffers)) val tile_slave_buffer = LazyModule(new TLBufferChain(addBuffers))
tile_slave_blocker.foreach { _.controlNode := coreplex.pbus.toVariableWidthSlaves }
val nodes = List( val nodes = List(
Some(tile_slave_buffer.node), Some(tile_slave_buffer.node),
tile_slave_blocker.map(_.node)).flatMap(b=>b) tile_slave_blocker.map(_.node)
).flatMap(b=>b)
nodes.init zip nodes.tail foreach { case(front, back) => front :=* back } nodes.init zip nodes.tail foreach { case(front, back) => front :=* back }
tile_slave_blocker.foreach { _.controlNode := coreplex.pbus.toVariableWidthSlaves } () => TLNodeChain(in = nodes.last, out = nodes.head)
() => TLNodeChain(nodes.last, nodes.head)
} }
} }