Archived
1
0

add a 3 way version of nand16

This commit is contained in:
Erick
2022-03-08 13:54:14 +01:00
parent 062c1aefb3
commit a4c9507c3c
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
module nand16(y16, a16, b16);
input [15:0]a16;
input[15:0]b16;
input [15:0]b16;
output [15:0]y16;
nand(y16[0], a16[0], b16[0]);
+15
View File
@@ -0,0 +1,15 @@
'include "gates/nand16.v"
module nand3way16(y16, a16, b16, c16);
input [15:0]a16;
input [15:0]b16;
input [15:0]c16;
output [15:0]y16;
wire tmp0[15:0], tmp1[15:0]
nand16(tmp0, a16, b16);
nand16(tmp1, tmp0, tmp0);
nand16(y16, tmp1, c16);
endmodule