From ff26f51436cad7ed09fb5e6ee6b8a0241d142055 Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Wed, 9 Jan 2019 00:04:15 -0500 Subject: Fix BoringUtils deduplication bug This fixes a bug where BoringUtils non-hierarchical sinks would be deduplicated even when specified that they should not be. h/t @ucbjrl for discovering this! Signed-off-by: Schuyler Eldridge --- src/main/scala/chisel3/util/experimental/BoringUtils.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/scala/chisel3/util/experimental/BoringUtils.scala b/src/main/scala/chisel3/util/experimental/BoringUtils.scala index 066e924f..c1bfa240 100644 --- a/src/main/scala/chisel3/util/experimental/BoringUtils.scala +++ b/src/main/scala/chisel3/util/experimental/BoringUtils.scala @@ -177,7 +177,7 @@ object BoringUtils { val annotations = Seq(new ChiselAnnotation with RunFirrtlTransform { def toFirrtl = SinkAnnotation(component.toNamed, name) - def transformClass = classOf[WiringTransform] }) + def transformClass = classOf[WiringTransform] }) ++ maybeDedup annotations.map(annotate(_)) } -- cgit v1.2.3