summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormergify[bot]2022-04-19 00:22:50 +0000
committerGitHub2022-04-19 00:22:50 +0000
commit9ff8ca7d3f4f71b1e42a136d1465da43baf7085b (patch)
tree81e66d401279cb77214d4df5d0deae9128be8cbf /core
parent17c930506046bc59f8a13a0c82734e7334b27613 (diff)
verification: switch order of assert/assume and printf (#2484) (#2493)
This is a quick fix for issue #2408 (cherry picked from commit d4ef9a96c4131252a0a49002a28be3391eb67258) Co-authored-by: Kevin Laeufer <laeufer@cs.berkeley.edu>
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/chisel3/VerificationStatement.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/scala/chisel3/VerificationStatement.scala b/core/src/main/scala/chisel3/VerificationStatement.scala
index bfdfc26e..7229c412 100644
--- a/core/src/main/scala/chisel3/VerificationStatement.scala
+++ b/core/src/main/scala/chisel3/VerificationStatement.scala
@@ -92,8 +92,8 @@ object assert {
): Assert = {
val id = new Assert()
when(!Module.reset.asBool()) {
- Builder.pushCommand(Verification(id, Formal.Assert, sourceInfo, Module.clock.ref, cond.ref, ""))
failureMessage("Assertion", line, cond, message, data)
+ Builder.pushCommand(Verification(id, Formal.Assert, sourceInfo, Module.clock.ref, cond.ref, ""))
}
id
}
@@ -178,8 +178,8 @@ object assume {
): Assume = {
val id = new Assume()
when(!Module.reset.asBool()) {
- Builder.pushCommand(Verification(id, Formal.Assume, sourceInfo, Module.clock.ref, cond.ref, ""))
failureMessage("Assumption", line, cond, message, data)
+ Builder.pushCommand(Verification(id, Formal.Assume, sourceInfo, Module.clock.ref, cond.ref, ""))
}
id
}