aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/transforms
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/transforms
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/transforms')
-rw-r--r--src/test/scala/firrtlTests/transforms/LegalizeClocks.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/firrtlTests/transforms/LegalizeClocks.scala b/src/test/scala/firrtlTests/transforms/LegalizeClocks.scala
index d7c76167..f57586f6 100644
--- a/src/test/scala/firrtlTests/transforms/LegalizeClocks.scala
+++ b/src/test/scala/firrtlTests/transforms/LegalizeClocks.scala
@@ -57,10 +57,10 @@ class LegalizeClocksTransformSpec extends FirrtlFlatSpec {
| stop(asClock(UInt(1)), UInt(1), 1)
|""".stripMargin
val result = compile(input)
- result should containLine (s"wire _GEN_0;")
+ result should containLine (s"wire _GEN_0 = 1'h1;")
// Check that there's only 1 _GEN_0 instantiation
val verilog = result.getEmittedCircuit.value
- val matches = "wire\\s+_GEN_0;".r.findAllIn(verilog)
+ val matches = "wire\\s+_GEN_0\\s+=\\s+1'h1".r.findAllIn(verilog)
matches.size should be (1)
}