From 0c695d8e83d25584495fe917067feb368855e563 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Fri, 10 Jun 2016 14:04:48 -0700 Subject: [PATCH] Use the new TileLink to Smi converter (#10) I pulled out the TileLink to Smi converter and put it in uncore so I can use it for my own stuff. --- groundtest/src/main/scala/unittest.scala | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/groundtest/src/main/scala/unittest.scala b/groundtest/src/main/scala/unittest.scala index b09b6291..87a58a67 100644 --- a/groundtest/src/main/scala/unittest.scala +++ b/groundtest/src/main/scala/unittest.scala @@ -464,21 +464,11 @@ class TileLinkToSmiConverterTest(implicit p: Parameters) extends UnitTest { val outermostParams = p.alterPartial({ case TLId => "Outermost" }) val smimem = Module(new SmiMem(32, 64)) - val conv1 = Module(new NastiIOTileLinkIOConverter()(outermostParams)) - val conv2 = Module(new SmiIONastiIOConverter(32, 6)) + val conv = Module(new SmiIOTileLinkIOConverter(32, 6)(outermostParams)) val driver = Module(new TileLinkToSmiConverterTestDriver()(outermostParams)) - def decoupledNastiConnect(outer: NastiIO, inner: NastiIO) { - outer.ar <> Queue(inner.ar) - outer.aw <> Queue(inner.aw) - outer.w <> Queue(inner.w) - inner.r <> Queue(outer.r) - inner.b <> Queue(outer.b) - } - - conv1.io.tl <> driver.io.mem - decoupledNastiConnect(conv2.io.nasti, conv1.io.nasti) - smimem.io <> conv2.io.smi + conv.io.tl <> driver.io.mem + smimem.io <> conv.io.smi driver.io.start := io.start io.finished := driver.io.finished }