aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackkoenig2016-04-21 13:03:21 -0700
committerjackkoenig2016-04-21 13:03:21 -0700
commitd783a39b64ee05d7c5d94fce0a9b5fd1ecd2beee (patch)
tree286988979d809791dcc6de42ccb5d521e59b9a78
parent09427e88533bdb7c83b46a744caa8c2825b525bf (diff)
Split Expressions on Stop similarly to how they are split on Print
This allows the Print and Stop resulting from Chisel assertions to be guarded by the same expression.
-rw-r--r--src/main/scala/firrtl/passes/Passes.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/passes/Passes.scala b/src/main/scala/firrtl/passes/Passes.scala
index 86ac5f85..57f4967d 100644
--- a/src/main/scala/firrtl/passes/Passes.scala
+++ b/src/main/scala/firrtl/passes/Passes.scala
@@ -1250,6 +1250,10 @@ object SplitExp extends Pass {
val sx = s map (split_exp_e(1))
v += sx; sx
}
+ case (s:Stop) => {
+ val sx = s map (split_exp_e(1))
+ v += sx; sx
+ }
case (s) => {
val sx = s map (split_exp_e(0))
v += sx; sx