This commit is contained in:
2024-12-12 01:05:57 +03:00
parent c1d75786ef
commit cd93206ad4
9 changed files with 706 additions and 0 deletions

View File

@ -0,0 +1,28 @@
module fulladderTB();
reg A, B, CarryIn;
wire Sum, CarryOut;
fulladder uut(
.A(A),
.B(B),
.CarryIn(CarryIn),
.Sum(Sum),
.CarryOut(CarryOut)
);
initial begin
$dumpfile("fulladder.vcd");
$dumpvars;
A = 1'b0; B = 1'b0; CarryIn = 1'b0; #10;
A = 1'b0; B = 1'b0; CarryIn = 1'b1; #10;
A = 1'b0; B = 1'b1; CarryIn = 1'b0; #10;
A = 1'b0; B = 1'b1; CarryIn = 1'b1; #10;
A = 1'b1; B = 1'b0; CarryIn = 1'b0; #10;
A = 1'b1; B = 1'b0; CarryIn = 1'b1; #10;
A = 1'b1; B = 1'b1; CarryIn = 1'b0; #10;
A = 1'b1; B = 1'b1; CarryIn = 1'b1; #10;
$finish;
end
endmodule