9 lines
155 B
Verilog
9 lines
155 B
Verilog
module demux(y, z, a, sel);
|
|
input a, sel;
|
|
output y, z;
|
|
wire notSel;
|
|
|
|
not(notSel, sel);
|
|
and(z, a, sel);
|
|
and(y, a, notSel);
|
|
endmodule |