Mux

chisel3.domain.Mux
object Mux

A (glitchy) domain-aware mux

Muxes any Data and associates the muxed output with a new domain supplied by the caller (e.g. ClockDomain("_muxed")). This is intended to be used as a very basic domain mux, e.g., as a clock mux. However, this can also be used to mux multiple signals at once, e.g., to mux between both a clock/reset pair and have the resulting pair be on the same domain.

Value parameters

domains

the output domains to associate the muxed output with

f

the value selected when sel is false

sel

the mux select

t

the value selected when sel is true

Attributes

Returns

the muxed output data and the output domain it was associated with

Note

This is a glitchy! This is not safe to use if sel will change while outT or outF are toggling.

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

Members list

Value members

Concrete methods

def apply[A <: Data](sel: Bool, t: A, f: A, domains: Type*)(implicit sourceInfo: SourceInfo): A

Attributes

Source
Mux.scala