From d20591e0d030d5c380e279999659fbfa9f41d3d3 Mon Sep 17 00:00:00 2001 From: ducky Date: Thu, 19 Nov 2015 16:03:53 -0800 Subject: Split internal and FIRRTL packages --- src/main/scala/Chisel/util/Conditional.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/scala/Chisel/util') 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.") } } -- cgit v1.2.3