switch

chisel3.util.switch
object switch

Conditional logic to form a switch block. See is for the case API.

Attributes

Example
switch (myState) {
 is (state1) {
   // some logic here that runs when myState === state1
 }
 is (state2) {
   // some logic here that runs when myState === state2
 }
}
Source
Switch.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
switch.type

Members list

Value members

Concrete methods

inline def apply[T <: Element](cond: T)(inline x: Any): Unit

Attributes

Source
Switch.scala