summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman2016-01-12 16:31:10 -0800
committerAndrew Waterman2016-01-12 16:31:10 -0800
commit171dd769bebaaeff069ca6dd745d3d1725b36547 (patch)
treea6f2d5cdb451e9fdd854f2fc229590dd5263083a
parenteada40ac04ca5505d6c64515904f1dcccb34349a (diff)
elaboration-time asserts should call Predef.assert
-rw-r--r--src/main/scala/Chisel/CoreUtil.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/Chisel/CoreUtil.scala b/src/main/scala/Chisel/CoreUtil.scala
index 7077c9c1..9027711b 100644
--- a/src/main/scala/Chisel/CoreUtil.scala
+++ b/src/main/scala/Chisel/CoreUtil.scala
@@ -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, "")
}
}