-
Notifications
You must be signed in to change notification settings - Fork 1
/
fullAdderStimulus.v
53 lines (43 loc) · 1.09 KB
/
fullAdderStimulus.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
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
//
// By: Jatin Kumar Mandav
// Design Name: FullAdderCircuit
//
// Description: Stimulus File For Full Adder Circuit
//
// Verilog Test Fixture created by ISE for module: FullAdderCircuit
//
////////////////////////////////////////////////////////////////////////////////
module fullAdderStimulus;
// Inputs
reg input1;
reg input2;
reg carry_in;
// Outputs
wire sum;
wire carry_out;
// Instantiate the Unit Under Test (UUT)
FullAdderCircuit uut (
.input1(input1),
.input2(input2),
.carry_in(carry_in),
.sum(sum),
.carry_out(carry_out)
);
initial begin
// Initialize Inputs
input1 = 0;
input2 = 0;
carry_in = 0;
// Wait 100 ns for global reset to finish
#100;
// Add stimulus here
#50 input1 = 1;
#50 input2 = 1;
#50 carry_in = 1;
end
initial begin
$monitor("Input1: %d, Input2: %d, Carry_in: %d\nSum: %d, Carry_out: %d\n\n", input1, input2, carry_in, sum, carry_out);
end
endmodule