PriorityMux

chisel3.util.PriorityMux
object PriorityMux

Builds a Mux tree under the assumption that multiple select signals can be enabled. Priority is given to the first select signal.

Attributes

Example
val hotValue = chisel3.util.PriorityMux(Seq(
io.selector(0) -> 2.U,
io.selector(1) -> 4.U,
io.selector(2) -> 8.U,
io.selector(4) -> 11.U,
))

Returns the output of the Mux tree.

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

Members list

Value members

Inherited methods

def apply[T <: Data](sel: Bits, in: Seq[T])(using SourceInfo): T

Attributes

Inherited from:
PriorityMux$Intf (hidden)
Source
MuxIntf.scala
def apply[T <: Data](sel: Seq[Bool], in: Seq[T])(using SourceInfo): T

Attributes

Inherited from:
PriorityMux$Intf (hidden)
Source
MuxIntf.scala
def apply[T <: Data](in: Seq[(Bool, T)])(using SourceInfo): T

Attributes

Inherited from:
PriorityMux$Intf (hidden)
Source
MuxIntf.scala