This commit is contained in:
2025-01-20 15:16:37 +03:00
parent a007343feb
commit 15916a2c53
48 changed files with 8567 additions and 4186 deletions

12
tangTest/fulladder.v Normal file
View File

@ -0,0 +1,12 @@
module fulladder (
input A, B, Carry,
output Sum, CarryO
);
wire xor1, and1, and2;
halfadder h1(.A(A), .B(B), .Sum(xor1), .Carry(and1));
halfadder h2 (.A(xor1), .B(Carry), .Sum(Sum), .Carry(and2));
or o1 (CarryO, and1, and2);
endmodule