From e0741a2097e32b3811cf1303c9a3bc50456a9503 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Fri, 2 Jun 2017 16:30:16 -0700 Subject: [PATCH] axi4: don't map unused masters into TL source ID space --- src/main/scala/uncore/axi4/ToTL.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/uncore/axi4/ToTL.scala b/src/main/scala/uncore/axi4/ToTL.scala index 90d5dae7..7f219052 100644 --- a/src/main/scala/uncore/axi4/ToTL.scala +++ b/src/main/scala/uncore/axi4/ToTL.scala @@ -13,7 +13,7 @@ case class AXI4ToTLNode() extends MixedAdapterNode(AXI4Imp, TLImp)( masters.foreach { m => require (m.maxFlight.isDefined, "AXI4 must include a transaction maximum per ID to convert to TL") } val maxFlight = masters.map(_.maxFlight.get).max TLClientPortParameters( - clients = masters.flatMap { m => + clients = masters.filter(_.maxFlight != Some(0)).flatMap { m => for (id <- m.id.start until m.id.end) yield TLClientParameters( name = s"${m.name} ID#${id}",