Archived
1
0

gates dump

This commit is contained in:
Erick
2022-03-01 23:35:17 +01:00
parent 540aac9fca
commit 0646b73f9a
24 changed files with 455 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
include "mux.v";
include "or4way.v";
module mux4way(out, i0, i1, i2, i3, sel0, sel1);
input i0, i1, i2, i3;
input [2:0]sel;
output [3:0]out;
wire tmp0, tmp1, tmp2, tmp3;
not(notSel, sel);
and(tmp0, i0, notSel);
and(tmp1, i1, sel);
and(tmp2, i2, notSel);
and(tmp3, i3, sel);
or4way(out, tmp0, tmp1, tmp2, tmp3);
endmodule