aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/ConstantPropagationTests.scala
diff options
context:
space:
mode:
authorAlbert Magyar2020-03-05 08:51:34 -0800
committerGitHub2020-03-05 08:51:34 -0800
commit32e33e4a5178fb31abfb3742e135e0d024f9b6c3 (patch)
tree91595ca7a75372c9e673c579b959e9b8d3febe4e /src/test/scala/firrtlTests/ConstantPropagationTests.scala
parent02afe6ef2bef9a27ef1606b79f11debe799ed0f3 (diff)
parentc0e800dbebf0260878f5de25d33eefa454346c55 (diff)
Merge pull request #1422 from freechipsproject/revert-inline-nots-only
Revert inline nots
Diffstat (limited to 'src/test/scala/firrtlTests/ConstantPropagationTests.scala')
-rw-r--r--src/test/scala/firrtlTests/ConstantPropagationTests.scala72
1 files changed, 0 insertions, 72 deletions
diff --git a/src/test/scala/firrtlTests/ConstantPropagationTests.scala b/src/test/scala/firrtlTests/ConstantPropagationTests.scala
index cc7a5e32..18579ca8 100644
--- a/src/test/scala/firrtlTests/ConstantPropagationTests.scala
+++ b/src/test/scala/firrtlTests/ConstantPropagationTests.scala
@@ -733,78 +733,6 @@ class ConstantPropagationSingleModule extends ConstantPropagationSpec {
(parse(exec(input))) should be(parse(check))
}
- "ConstProp" should "propagate boolean equality with true" in {
- val input =
- """circuit Top :
- | module Top :
- | input x : UInt<1>
- | output z : UInt<1>
- | z <= eq(x, UInt<1>("h1"))
- """.stripMargin
- val check =
- """circuit Top :
- | module Top :
- | input x : UInt<1>
- | output z : UInt<1>
- | z <= x
- """.stripMargin
- (parse(exec(input))) should be(parse(check))
- }
-
- "ConstProp" should "propagate boolean equality with false" in {
- val input =
- """circuit Top :
- | module Top :
- | input x : UInt<1>
- | output z : UInt<1>
- | z <= eq(x, UInt<1>("h0"))
- """.stripMargin
- val check =
- """circuit Top :
- | module Top :
- | input x : UInt<1>
- | output z : UInt<1>
- | z <= not(x)
- """.stripMargin
- (parse(exec(input))) should be(parse(check))
- }
-
- "ConstProp" should "propagate boolean non-equality with true" in {
- val input =
- """circuit Top :
- | module Top :
- | input x : UInt<1>
- | output z : UInt<1>
- | z <= neq(x, UInt<1>("h1"))
- """.stripMargin
- val check =
- """circuit Top :
- | module Top :
- | input x : UInt<1>
- | output z : UInt<1>
- | z <= not(x)
- """.stripMargin
- (parse(exec(input))) should be(parse(check))
- }
-
- "ConstProp" should "propagate boolean non-equality with false" in {
- val input =
- """circuit Top :
- | module Top :
- | input x : UInt<1>
- | output z : UInt<1>
- | z <= neq(x, UInt<1>("h0"))
- """.stripMargin
- val check =
- """circuit Top :
- | module Top :
- | input x : UInt<1>
- | output z : UInt<1>
- | z <= x
- """.stripMargin
- (parse(exec(input))) should be(parse(check))
- }
-
// Optimizing this mux gives: z <= pad(UInt<2>(0), 4)
// Thus this checks that we then optimize that pad
"ConstProp" should "optimize nested Expressions" in {