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 Objecttrait Matchableclass Any
- Self type
-
Mux1H.type
Members list
In this article