Mux2Cell

chisel3.util.circt.Mux2Cell
object Mux2Cell

Utility for constructing 2-to-1 MUX cell intrinsic. This intrinsic is lowered into verilog with vendor specic pragmas that guarantee utilization of 2-to-1 MUX cell in the synthesis process. Semantically Mux2Cell(cond, con, alt) is equivalent to Mux(cond, con, alt) for all cond, con and alt.

Attributes

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

Members list

Value members

Concrete methods

def apply[T <: Data](cond: UInt, con: T, alt: T): T

Creates an intrinsic which will be lowered to a 2-to-1 MUX cell in synthesis tools.

Creates an intrinsic which will be lowered to a 2-to-1 MUX cell in synthesis tools.

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 = Mux2Cell(data_in === 3.U, 3.U(4.W), 0.U(4.W))
Source
Synthesis.scala