Implementation of 4:1
Multiplexer:
Verilog Code:
module muxeight (a,b,c,d,s0,s1,y);
input a,b,c,d,s0,s1;
output y;
wire w1,w2,w3,w4,w5,w6,w7,w8;
not(w1,s0);
not(w2,s1);
not(w3,s0);
not(w4,s1);
and(w5,w1,w2,a);
and(w6,w3,s1,b);
and(w7,so,w4,c);
and(w8,s0,s1,d);