diff options
| author | edwardcwang | 2019-04-11 11:43:21 -0700 |
|---|---|---|
| committer | Adam Izraelevitz | 2019-04-11 11:43:21 -0700 |
| commit | 859d1019e6568585762615217348c7efc1b509e1 (patch) | |
| tree | 4f1e1c385b888b86f4ac5215ee61cb383c7a6bf1 /src/test | |
| parent | 4549a4556dfe491901079a81ceca29f2483073cc (diff) | |
LowerTypesSpec: additional unit test (#1071)
Diffstat (limited to 'src/test')
| -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 : |
