Mux

chisel3.Mux
object Mux

Attributes

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

Members list

Value members

Inherited methods

def apply[T <: Data](cond: Bool, con: T, alt: T)(using SourceInfo): T

Creates a mux, whose output is one of the inputs depending on the value of the condition.

Creates a mux, whose output is one of the inputs depending on the value of the condition.

Value parameters

alt

the value chosen when cond is false

con

the value chosen when cond is true

cond

condition determining the input to choose

Attributes

Example
val muxOut = Mux(data_in === 3.U, 3.U(4.W), 0.U(4.W))
Inherited from:
Mux$Intf (hidden)
Source
MuxIntf.scala