-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdec5to32_tb.v
141 lines (100 loc) · 1.46 KB
/
dec5to32_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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 19:19:51 01/02/2022
// Design Name: dec5to32
// Module Name: C:/Users/Nefel/Desktop/University/Notes/part1/dec5to32_tb.v
// Project Name: part1
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: dec5to32
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module dec5to32_tb;
// Inputs
reg [4:0] Adr;
// Outputs
wire [31:0] Out;
// Instantiate the Unit Under Test (UUT)
dec5to32 uut (
.Out(Out),
.Adr(Adr)
);
initial begin
Adr = 0;
#5;
Adr = 1;
#5;
Adr = 2;
#5;
Adr = 3;
#5;
Adr = 4;
#5;
Adr = 5;
#5;
Adr = 6;
#5;
Adr = 7;
#5;
Adr = 8;
#5;
Adr = 9;
#5;
Adr = 10;
#5;
Adr = 11;
#5;
Adr = 12;
#5;
Adr = 13;
#5;
Adr = 14;
#5;
Adr = 15;
#5;
Adr = 16;
#5;
Adr = 17;
#5;
Adr = 18;
#5;
Adr = 19;
#5;
Adr = 20;
#5;
Adr = 21;
#5;
Adr = 22;
#5;
Adr = 23;
#5;
Adr = 24;
#5;
Adr = 25;
#5;
Adr = 26;
#5;
Adr = 27;
#5;
Adr = 28;
#5;
Adr = 29;
#5;
Adr = 30;
#5;
Adr = 31;
#5;
//Simulation time: 160ns
end
endmodule