Lecture Notes on Multiplexer
The multiplexer, shortened to “MUX” is a combinational logic circuit designed to switch one of several input lines through to a single common output line by the application of a control signal.--- Verilog code snippet ---
reg f;
always @(sel or a or b)
begin
if (sel == 1)
f = a;
else
f = b;
end
}
74LS153 is a dual 4 to 1 MUX. The design of the IC is like the below: