summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/CoreUtil.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/Chisel/CoreUtil.scala')
-rw-r--r--src/main/scala/Chisel/CoreUtil.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/Chisel/CoreUtil.scala b/src/main/scala/Chisel/CoreUtil.scala
index 7077c9c1..eed90410 100644
--- a/src/main/scala/Chisel/CoreUtil.scala
+++ b/src/main/scala/Chisel/CoreUtil.scala
@@ -4,7 +4,7 @@ package Chisel
import internal._
import internal.Builder.pushCommand
-import firrtl._
+import internal.firrtl._
object assert {
/** Checks for a condition to be valid in the circuit at all times. If the
@@ -43,13 +43,13 @@ object assert {
/** An elaboration-time assertion, otherwise the same as the above run-time
* assertion. */
def apply(cond: Boolean, message: String) {
- apply(Bool(cond), message)
+ Predef.assert(cond, message)
}
/** A workaround for default-value overloading problems in Scala, just
* 'assert(cond, "")' */
def apply(cond: Boolean) {
- apply(cond, "")
+ Predef.assert(cond, "")
}
}