summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/util
diff options
context:
space:
mode:
authorducky2015-11-19 16:03:53 -0800
committerPalmer Dabbelt2015-12-06 22:14:52 -0800
commitd20591e0d030d5c380e279999659fbfa9f41d3d3 (patch)
tree9dbf9b3ba419bc7f4133812c757a9ce51ee8e58f /src/main/scala/Chisel/util
parentc26ca883aab6499216c673f867ee61651a9c11a2 (diff)
Split internal and FIRRTL packages
Diffstat (limited to 'src/main/scala/Chisel/util')
-rw-r--r--src/main/scala/Chisel/util/Conditional.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/Chisel/util/Conditional.scala b/src/main/scala/Chisel/util/Conditional.scala
index b0ac4491..9cab25ef 100644
--- a/src/main/scala/Chisel/util/Conditional.scala
+++ b/src/main/scala/Chisel/util/Conditional.scala
@@ -31,15 +31,15 @@ class SwitchContext[T <: Bits](cond: T) {
object is { // scalastyle:ignore object.name
// Begin deprecation of non-type-parameterized is statements.
def apply(v: Iterable[Bits])(block: => Unit) {
- Builder.error("The 'is' keyword may not be used outside of a switch.")
+ require(false, "The 'is' keyword may not be used outside of a switch.")
}
def apply(v: Bits)(block: => Unit) {
- Builder.error("The 'is' keyword may not be used outside of a switch.")
+ require(false, "The 'is' keyword may not be used outside of a switch.")
}
def apply(v: Bits, vr: Bits*)(block: => Unit) {
- Builder.error("The 'is' keyword may not be used outside of a switch.")
+ require(false, "The 'is' keyword may not be used outside of a switch.")
}
}