1
0

Use generic TileLink width adapter

This commit is contained in:
Andrew Waterman 2016-05-26 15:59:56 -07:00
parent b734beec06
commit 75f06d6e84

View File

@ -158,13 +158,11 @@ class NastiConverterTest(implicit p: Parameters) extends GroundTest()(p)
val sequencer = Module(new NastiSequencer(tests.size)) val sequencer = Module(new NastiSequencer(tests.size))
val converter = Module(new TileLinkIONastiIOConverter()( val converter = Module(new TileLinkIONastiIOConverter()(
p.alterPartial { case TLId => "Outermost" })) p.alterPartial { case TLId => "Outermost" }))
val widener = Module(new TileLinkIOWidener("Outermost", "L1toL2"))
sequencer.io.in <> tests.map(_.io.mem) sequencer.io.in <> tests.map(_.io.mem)
sequencer.io.finished := tests.map(_.io.finished) sequencer.io.finished := tests.map(_.io.finished)
converter.io.nasti <> sequencer.io.out converter.io.nasti <> sequencer.io.out
widener.io.in <> converter.io.tl TileLinkWidthAdapter(converter.io.tl, io.mem)
io.mem <> widener.io.out
io.finished := tests.map(_.io.finished).reduce(_ && _) io.finished := tests.map(_.io.finished).reduce(_ && _)
} }