summaryrefslogtreecommitdiff
path: root/chiselFrontend/src/main/scala/chisel3/core/Assert.scala
diff options
context:
space:
mode:
authorducky2018-06-28 14:53:00 -0700
committerRichard Lin2018-07-04 18:39:28 -0500
commit4cf5caf86a072bc4af581536930469b82796dd27 (patch)
tree5f3e4f1b8dd2cfc268dfbc84b5edb856c6d02c3a /chiselFrontend/src/main/scala/chisel3/core/Assert.scala
parent28261aefc081a9edfff1cd67d2a4a386933dcb4b (diff)
properly fix undefined clock/reset issues
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/core/Assert.scala')
-rw-r--r--chiselFrontend/src/main/scala/chisel3/core/Assert.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Assert.scala b/chiselFrontend/src/main/scala/chisel3/core/Assert.scala
index 43a74192..92f602c4 100644
--- a/chiselFrontend/src/main/scala/chisel3/core/Assert.scala
+++ b/chiselFrontend/src/main/scala/chisel3/core/Assert.scala
@@ -60,7 +60,7 @@ object assert { // scalastyle:ignore object.name
case None => s"Assertion failed\n at $escLine\n"
}
printf.printfWithoutReset(fmt, data:_*)
- pushCommand(Stop(sourceInfo, Node(Builder.forcedClock), 1))
+ pushCommand(Stop(sourceInfo, Builder.forcedClock.ref, 1))
}
}
@@ -81,7 +81,7 @@ object stop { // scalastyle:ignore object.name
/** Terminate execution with a failure code. */
def apply(code: Int)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): Unit = {
when (!Module.reset.toBool) {
- pushCommand(Stop(sourceInfo, Node(Builder.forcedClock), code))
+ pushCommand(Stop(sourceInfo, Builder.forcedClock.ref, code))
}
}