Archived
1
0

Create mux.v (multiplexer gate)

This commit is contained in:
Erick
2022-02-28 23:56:05 +01:00
parent 90287bca73
commit bcb06dae6a
+10
View File
@@ -0,0 +1,10 @@
module mux(y, a, b, sel);
input a, b, sel;
inout y;
wire notSel, andA, andB;
not(notSel, sel);
and(andA, a, sel);
and(andB, b, notSel);
or(y, andA, andB);
endmodule