From 10dd6070ad7694d16b7c6885aee4d10680f37425 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Fri, 18 Nov 2016 17:26:28 -0800 Subject: [PATCH] groundtest: gracefully handle zero uncached ports --- src/main/scala/groundtest/Tile.scala | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/scala/groundtest/Tile.scala b/src/main/scala/groundtest/Tile.scala index 3a6e2cff..d418ceba 100644 --- a/src/main/scala/groundtest/Tile.scala +++ b/src/main/scala/groundtest/Tile.scala @@ -146,9 +146,14 @@ class GroundTestTile(implicit val p: Parameters) extends LazyModule with HasGrou ptw.io.requestors <> ptwPorts } - val uncachedArb = Module(new ClientUncachedTileLinkIOArbiter(uncachedArbPorts.size)) - uncachedArb.io.in <> uncachedArbPorts - ucLegacy.module.io.legacy <> uncachedArb.io.out + if (uncachedArbPorts.isEmpty) { + ucLegacy.module.io.legacy.acquire.valid := Bool(false) + ucLegacy.module.io.legacy.grant.ready := Bool(true) + } else { + val uncachedArb = Module(new ClientUncachedTileLinkIOArbiter(uncachedArbPorts.size)) + uncachedArb.io.in <> uncachedArbPorts + ucLegacy.module.io.legacy <> uncachedArb.io.out + } io.success := test.io.status.finished }