diff options
| author | Schuyler Eldridge | 2020-01-09 13:02:36 -0500 |
|---|---|---|
| committer | mergify[bot] | 2020-01-09 18:02:36 +0000 |
| commit | 2dc005d500ffcccef5def5938dc7ead7c68644b3 (patch) | |
| tree | b64a952e0bd9bb5fe1a5e7c04e7e373f197f46b2 /src/test/scala/firrtlTests/FlattenTests.scala | |
| parent | a4f2eda0ca312f80f43f89a764622aa744f9f84b (diff) | |
Dedup PassTests, add NoCircuitDedupAnnotations (#1302)
Change PassTests to include Dedup when running transforms. This makes
PassTests behave more like an actual compiler.
Fixes bugs in Inline, Flatten, and Grouping tests where the tests
would only work without deduplication. This adds
NoCircuiDedupAnnotations to prevent deduplication for the offending
tests.
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
Diffstat (limited to 'src/test/scala/firrtlTests/FlattenTests.scala')
| -rw-r--r-- | src/test/scala/firrtlTests/FlattenTests.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/scala/firrtlTests/FlattenTests.scala b/src/test/scala/firrtlTests/FlattenTests.scala index 468cc1c4..a63f6e13 100644 --- a/src/test/scala/firrtlTests/FlattenTests.scala +++ b/src/test/scala/firrtlTests/FlattenTests.scala @@ -9,7 +9,7 @@ import firrtl.ir.Circuit import firrtl.Parser import firrtl.passes.PassExceptions import firrtl.annotations.{Annotation, CircuitName, ComponentName, ModuleName, Named} -import firrtl.transforms.{FlattenAnnotation, Flatten} +import firrtl.transforms.{FlattenAnnotation, Flatten, NoCircuitDedupAnnotation} import logger.{LogLevel, Logger} import logger.LogLevel.Debug @@ -159,7 +159,7 @@ class FlattenTests extends LowTransformSpec { | input a : UInt<32> | output b : UInt<32> | b <= a""".stripMargin - execute(input, check, Seq(flatten("Top.i"))) + execute(input, check, Seq(flatten("Top.i"), NoCircuitDedupAnnotation)) } "The module Inline1" should "be inlined" in { val input = @@ -222,7 +222,7 @@ class FlattenTests extends LowTransformSpec { | input a : UInt<32> | output b : UInt<32> | b <= a""".stripMargin - execute(input, check, Seq(flatten("Inline1"))) + execute(input, check, Seq(flatten("Inline1"), NoCircuitDedupAnnotation)) } "The Flatten transform" should "do nothing if no flatten annotations are present" in{ val input = |
