Verilog HDL Program for 2X1 Multiplexer

a multiplexer (or MUX) is a device that selects one of several analog or digital input signals and forwards the selected input into a single line. A multiplexer of 2n inputs has n select lines, which are used to select which input line to send to the output. Multiplexers are mainly used to increase the amount of data that can be sent over the network within a certain amount of time and bandwidth. A multiplexer is also called a data selector. They are used in CCTV, and almost every business that has CCTV fitted, will own one of these.

1
2
3
4
5
6
7
8
module mux211(q,i1,i0,s);
    output q;
    input i1,i0,s;
    not (u,s);
    and (m,s,i1);
    and (n,u,i0);
    or (q,m,n);
endmodule
Simulated waveform for 2 X 1 Multiplexer
Simulated waveform for 2 X 1 Multiplexer

Leave a Reply