MuxCase

chisel3.util.MuxCase
object MuxCase

Given an association of values to enable signals, returns the first value with an associated high enable signal.

Attributes

Example
MuxCase(default, Array(c1 -> a, c2 -> b))
Source
Mux.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MuxCase.type

Members list

Value members

Concrete methods

def apply[T <: Data](default: T, mapping: Seq[(Bool, T)]): T

Value parameters

default

the default value if none are enabled

mapping

a set of data values with associated enables

Attributes

Returns

the first value in mapping that is enabled

Source
Mux.scala