aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/InfoSpec.scala
diff options
context:
space:
mode:
authorMurali Vijayaraghavan2020-05-13 09:47:47 -0700
committerGitHub2020-05-13 16:47:47 +0000
commit96fbaf5025ab337a6fc151795f49c1891f79a91e (patch)
treec8b0cde148815fc438891ac0c1d684de56475a47 /src/test/scala/firrtlTests/InfoSpec.scala
parentd7631649488d24b5edbbb8c8de251f8e652f6304 (diff)
consolidated wire+assign to just wire, with expression inlined (#1600)
* consolidated wire <type> x; assign x = y; to wire <type> x = y; * Remove dead code from Emitter.scala Co-authored-by: Albert Magyar <albert.magyar@gmail.com>
Diffstat (limited to 'src/test/scala/firrtlTests/InfoSpec.scala')
-rw-r--r--src/test/scala/firrtlTests/InfoSpec.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/scala/firrtlTests/InfoSpec.scala b/src/test/scala/firrtlTests/InfoSpec.scala
index 12ba9151..48567d69 100644
--- a/src/test/scala/firrtlTests/InfoSpec.scala
+++ b/src/test/scala/firrtlTests/InfoSpec.scala
@@ -62,10 +62,9 @@ class InfoSpec extends FirrtlFlatSpec with FirrtlMatchers {
result should containTree { case DefRegister(Info1, "r", _,_,_,_) => true }
result should containLine (s"reg [7:0] r; //$Info1")
result should containTree { case DefNode(Info2, "w", _) => true }
- result should containLine (s"wire [7:0] w; //$Info2") // Node "w" declaration in Verilog
+ result should containLine (s"wire [7:0] w = x & r; //$Info2") // Node "w" declaration in Verilog
result should containTree { case DefNode(Info3, "n", _) => true }
- result should containLine (s"wire [7:0] n; //$Info3")
- result should containLine (s"assign n = w | x; //$Info3")
+ result should containLine (s"wire [7:0] n = w | x; //$Info3")
}
it should "be propagated on memories" in {