-
Notifications
You must be signed in to change notification settings - Fork 0
/
Full_adder_tb.v
67 lines (62 loc) · 922 Bytes
/
Full_adder_tb.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 01.07.2023 15:43:55
// Design Name:
// Module Name: Full_adder_tb
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module Full_adder_tb();
reg A;
reg B;
reg Cin;
wire Sum;
wire Carry;
Full_adder FA(.A(A),.B(B),.Cin(Cin),.Sum(Sum),.Carry(Carry));
initial
begin
A = 1'b0;
B = 1'b0;
Cin = 1'b0;
#10
A = 1'b0;
B = 1'b0;
Cin = 1'b1;
#10
A = 1'b0;
B = 1'b1;
Cin = 1'b0;
#10
A = 1'b0;
B = 1'b1;
Cin = 1'b1;
#10
A = 1'b1;
B = 1'b0;
Cin = 1'b0;
#10
A = 1'b1;
B = 1'b0;
Cin = 1'b1;
#10
A = 1'b1;
B = 1'b1;
Cin = 1'b0;
#10
A = 1'b1;
B = 1'b1;
Cin = 1'b1;
end
endmodule