-
Notifications
You must be signed in to change notification settings - Fork 0
/
simulation_2.vcd
268 lines (268 loc) · 2.49 KB
/
simulation_2.vcd
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
$date
Thu Dec 2 22:57:40 2021
$end
$version
Icarus Verilog
$end
$timescale
1s
$end
$scope module TestBench $end
$scope module cpu $end
$var reg 24 ! \Registar_File[1] [23:0] $end
$upscope $end
$upscope $end
$scope module TestBench $end
$scope module cpu $end
$var reg 24 " \Registar_File[2] [23:0] $end
$upscope $end
$upscope $end
$scope module TestBench $end
$var wire 24 # data_out_of_mem_in_cpu [23:0] $end
$var wire 24 $ data_in_mem_out_of_cpu [23:0] $end
$var wire 1 % clock $end
$var wire 1 & Mem_EN $end
$var wire 1 ' Mem_CS $end
$var wire 8 ( MAR [7:0] $end
$scope module Mem $end
$var wire 24 ) data_in [23:0] $end
$var wire 1 % clk $end
$var wire 8 * MAR [7:0] $end
$var wire 1 & EN $end
$var wire 1 ' CS $end
$var reg 24 + data_out [23:0] $end
$upscope $end
$scope module clock_generator $end
$var reg 1 % clock $end
$upscope $end
$scope module cpu $end
$var wire 24 , MBR_in [23:0] $end
$var wire 1 % clk $end
$var reg 19 - IR [18:0] $end
$var reg 8 . MAR [7:0] $end
$var reg 24 / MBR_out [23:0] $end
$var reg 1 ' Mem_CS $end
$var reg 1 & Mem_EN $end
$var reg 8 0 PC [7:0] $end
$var reg 8 1 SP [7:0] $end
$var reg 8 2 Status_Reg [7:0] $end
$var reg 3 3 state [2:0] $end
$upscope $end
$upscope $end
$enddefinitions $end
#0
$dumpvars
b0 3
b0 2
b0 1
b10100 0
bx /
bx .
bx -
bx ,
bx +
bx *
bx )
bx (
0'
0&
0%
bx $
bx #
bx "
bx !
$end
#5
1%
#8
b10100 (
b10100 *
b10100 .
b1 3
1&
#10
0%
#15
1%
#16
b11000100000011010 #
b11000100000011010 +
b11000100000011010 ,
#17
b10101 0
b11000100000011010 -
b10 3
0&
#20
0%
#25
1%
#28
b101 3
#30
0%
#35
1%
#37
b11 !
b0 3
#40
0%
#45
1%
#48
b10101 (
b10101 *
b10101 .
b1 3
1&
#50
0%
#55
1%
#56
b111000100011111000 #
b111000100011111000 +
b111000100011111000 ,
#57
b10110 0
b111000100011111000 -
b10 3
0&
#60
0%
#65
1%
#68
b11111 (
b11111 *
b11111 .
b11 3
#70
0%
#75
1%
#77
b101 3
1&
#80
0%
#85
1%
#86
b0 #
b0 +
b0 ,
#87
b11 !
b0 3
0&
#90
0%
#95
1%
#98
b10110 (
b10110 *
b10110 .
b1 3
1&
#100
0%
#105
1%
#106
b11001000000110010 #
b11001000000110010 +
b11001000000110010 ,
#107
b10111 0
b11001000000110010 -
b10 3
0&
#110
0%
#115
1%
#118
b101 3
#120
0%
#125
1%
#127
b110 "
b0 3
#130
0%
#135
1%
#138
b10111 (
b10111 *
b10111 .
b1 3
1&
#140
0%
#145
1%
#146
b1101000100000010011 #
b1101000100000010011 +
b1101000100000010011 ,
#147
b11000 0
b1101000100000010011 -
b10 3
0&
#150
0%
#155
1%
#158
b101 3
#160
0%
#165
1%
#167
b0 3
#170
0%
#175
1%
#178
b11000 (
b11000 *
b11000 .
b1 3
1&
#180
0%
#185
1%
#186
bx #
bx +
bx ,
#187
b11001 0
bx -
b10 3
0&
#190
0%
#195
1%
#200
0%
#205
1%
#210
0%
#215
1%
#220
0%
#221