Mux1H

chisel3.util.Mux1H
object Mux1H

Builds a Mux tree out of the input signal vector using a one hot encoded select signal. Returns the output of the Mux tree.

Attributes

Note

results unspecified unless exactly one select signal is high

Example
val hotValue = chisel3.util.Mux1H(Seq(
io.selector(0) -> 2.U,
io.selector(1) -> 4.U,
io.selector(2) -> 8.U,
io.selector(4) -> 11.U,
))
Source
Mux.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Mux1H.type

Members list

Value members

Inherited methods

def apply(sel: UInt, in: UInt)(using SourceInfo): Bool

Attributes

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

Attributes

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

Attributes

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

Attributes

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