diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/scala/firrtlTests/LowerTypesSpec.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/scala/firrtlTests/LowerTypesSpec.scala b/src/test/scala/firrtlTests/LowerTypesSpec.scala index 27f2c8a0..30ef795b 100644 --- a/src/test/scala/firrtlTests/LowerTypesSpec.scala +++ b/src/test/scala/firrtlTests/LowerTypesSpec.scala @@ -66,6 +66,21 @@ class LowerTypesSpec extends FirrtlFlatSpec { executeTest(input, expected) } + it should "lower mixed-direction ports" in { + val input = + """circuit Test : + | module Test : + | input foo : {flip a : UInt<1>, b : UInt<1>}[1] + | foo is invalid + """.stripMargin + val expected = Seq( + "output foo_0_a : UInt<1>", + "input foo_0_b : UInt<1>" + ) map normalized + + executeTest(input, expected) + } + it should "lower registers" in { val input = """circuit Test : |
