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.
condition determining the input to choose
the value chosen when cond
is true
the value chosen when cond
is false
val muxOut = Mux(data_in === 3.U, 3.U(4.W), 0.U(4.W))