is

chisel3.util.is
object is

Use to specify cases in a switch block, equivalent to a when block comparing to the condition variable.

Attributes

Note

illegal outside a switch block

must be a literal

each is must be mutually exclusive

dummy implementation, a macro inside switch transforms this into the actual implementation

Source
Conditional.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
is.type

Members list

Value members

Concrete methods

def apply(v: Iterable[Element])(block: => Any): Unit

Executes block if the switch condition is equal to any of the values in v.

Executes block if the switch condition is equal to any of the values in v.

Attributes

Source
Conditional.scala
def apply(v: Element)(block: => Any): Unit

Executes block if the switch condition is equal to v.

Executes block if the switch condition is equal to v.

Attributes

Source
Conditional.scala
def apply(v: Element, vr: Element*)(block: => Any): Unit

Executes block if the switch condition is equal to any of the values in the argument list.

Executes block if the switch condition is equal to any of the values in the argument list.

Attributes

Source
Conditional.scala