diff options
| author | Andrew Waterman | 2016-01-12 16:31:10 -0800 |
|---|---|---|
| committer | Andrew Waterman | 2016-01-12 16:31:10 -0800 |
| commit | 171dd769bebaaeff069ca6dd745d3d1725b36547 (patch) | |
| tree | a6f2d5cdb451e9fdd854f2fc229590dd5263083a /src/main/scala/Chisel | |
| parent | eada40ac04ca5505d6c64515904f1dcccb34349a (diff) | |
elaboration-time asserts should call Predef.assert
Diffstat (limited to 'src/main/scala/Chisel')
| -rw-r--r-- | src/main/scala/Chisel/CoreUtil.scala | 4 |
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, "") } } |
