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
+29
View File
@@ -0,0 +1,29 @@
include "or16.v"
module or8way16(out, i0, i1, i2, i3, i4, i5, i6, i7);
input [15:0]i0;
input [15:0]i1;
input [15:0]i2;
input [15:0]i3;
input [15:0]i4;
input [15:0]i5;
input [15:0]i6;
input [15:0]i7;
output [15:0] out;
wire [15:0]tmp01;
wire [15:0]tmp23;
wire [15:0]tmp45;
wire [15:0]tmp67;
wire [15:0]tmp0123;
wire [15:0]tmp4567;
or16 or01(tmp01, i0, i1);
or16 or23(tmp23, i2, i3);
or16 or45(tmp45, i4, i5);
or16 or67(tmp67, i6, i7);
or16 or0123(tmp0123, tmp01, tmp23);
or16 or4567(tmp4567, tmp45, tmp67);
or16 final(out, tmp0123, tmp4567);
endmodule