-
Notifications
You must be signed in to change notification settings - Fork 0
/
a.out
executable file
·443 lines (443 loc) · 12.8 KB
/
a.out
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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
#! /opt/local/bin/vvp
:ivl_version "12.0 (stable)";
:ivl_delay_selection "TYPICAL";
:vpi_time_precision - 12;
:vpi_module "/opt/local/lib/ivl/system.vpi";
:vpi_module "/opt/local/lib/ivl/vhdl_sys.vpi";
:vpi_module "/opt/local/lib/ivl/vhdl_textio.vpi";
:vpi_module "/opt/local/lib/ivl/v2005_math.vpi";
:vpi_module "/opt/local/lib/ivl/va_math.vpi";
S_0x7fd004104d50 .scope module, "tb_alu" "tb_alu" 2 9;
.timescale -9 -12;
v0x600002508ea0_0 .var "A", 31 0;
v0x600002508f30_0 .net "ALU_Out", 31 0, L_0x600003c081c0; 1 drivers
v0x600002508fc0_0 .var "ALU_Sel", 3 0;
v0x600002509050_0 .var "B", 31 0;
v0x6000025090e0_0 .net "CarryOut", 0 0, L_0x60000260c320; 1 drivers
v0x600002509170_0 .net "Zero", 0 0, L_0x600003c08230; 1 drivers
S_0x7fd004104910 .scope module, "uut" "alu" 2 23, 3 3 0, S_0x7fd004104d50;
.timescale 0 0;
.port_info 0 /INPUT 32 "A";
.port_info 1 /INPUT 32 "B";
.port_info 2 /INPUT 4 "ALU_Sel";
.port_info 3 /OUTPUT 32 "ALU_Out";
.port_info 4 /OUTPUT 1 "CarryOut";
.port_info 5 /OUTPUT 1 "Zero";
L_0x600003c081c0 .functor BUFZ 32, v0x600002508750_0, C4<00000000000000000000000000000000>, C4<00000000000000000000000000000000>, C4<00000000000000000000000000000000>;
L_0x600003c08230 .functor BUFZ 1, v0x600002508e10_0, C4<0>, C4<0>, C4<0>;
v0x600002508630_0 .net "A", 31 0, v0x600002508ea0_0; 1 drivers
v0x6000025086c0_0 .net "ALU_Out", 31 0, L_0x600003c081c0; alias, 1 drivers
v0x600002508750_0 .var "ALU_Result", 31 0;
v0x6000025087e0_0 .net "ALU_Sel", 3 0, v0x600002508fc0_0; 1 drivers
v0x600002508870_0 .net "B", 31 0, v0x600002509050_0; 1 drivers
v0x600002508900_0 .net "CarryOut", 0 0, L_0x60000260c320; alias, 1 drivers
v0x600002508990_0 .net "Zero", 0 0, L_0x600003c08230; alias, 1 drivers
L_0x7fd004063008 .functor BUFT 1, C4<0>, C4<0>, C4<0>, C4<0>;
v0x600002508a20_0 .net/2u *"_ivl_2", 0 0, L_0x7fd004063008; 1 drivers
v0x600002508ab0_0 .net *"_ivl_4", 32 0, L_0x60000260c140; 1 drivers
L_0x7fd004063050 .functor BUFT 1, C4<0>, C4<0>, C4<0>, C4<0>;
v0x600002508b40_0 .net/2u *"_ivl_6", 0 0, L_0x7fd004063050; 1 drivers
v0x600002508bd0_0 .net *"_ivl_8", 32 0, L_0x60000260c1e0; 1 drivers
v0x600002508c60_0 .var/i "i", 31 0;
v0x600002508cf0_0 .net "tmp", 32 0, L_0x60000260c280; 1 drivers
v0x600002508d80_0 .var "y", 31 0;
v0x600002508e10_0 .var "zeroOut", 0 0;
E_0x60000020aac0 .event anyedge, v0x600002508750_0;
E_0x60000020ab00 .event anyedge, v0x6000025087e0_0, v0x600002508630_0, v0x600002508870_0, v0x600002508d80_0;
L_0x60000260c140 .concat [ 32 1 0 0], v0x600002508ea0_0, L_0x7fd004063008;
L_0x60000260c1e0 .concat [ 32 1 0 0], v0x600002509050_0, L_0x7fd004063050;
L_0x60000260c280 .arith/sum 33, L_0x60000260c140, L_0x60000260c1e0;
L_0x60000260c320 .part L_0x60000260c280, 32, 1;
.scope S_0x7fd004104910;
T_0 ;
%wait E_0x60000020ab00;
%load/vec4 v0x6000025087e0_0;
%dup/vec4;
%pushi/vec4 0, 0, 4;
%cmp/u;
%jmp/1 T_0.0, 6;
%dup/vec4;
%pushi/vec4 1, 0, 4;
%cmp/u;
%jmp/1 T_0.1, 6;
%dup/vec4;
%pushi/vec4 2, 0, 4;
%cmp/u;
%jmp/1 T_0.2, 6;
%dup/vec4;
%pushi/vec4 3, 0, 4;
%cmp/u;
%jmp/1 T_0.3, 6;
%dup/vec4;
%pushi/vec4 4, 0, 4;
%cmp/u;
%jmp/1 T_0.4, 6;
%dup/vec4;
%pushi/vec4 5, 0, 4;
%cmp/u;
%jmp/1 T_0.5, 6;
%dup/vec4;
%pushi/vec4 6, 0, 4;
%cmp/u;
%jmp/1 T_0.6, 6;
%dup/vec4;
%pushi/vec4 7, 0, 4;
%cmp/u;
%jmp/1 T_0.7, 6;
%dup/vec4;
%pushi/vec4 8, 0, 4;
%cmp/u;
%jmp/1 T_0.8, 6;
%dup/vec4;
%pushi/vec4 9, 0, 4;
%cmp/u;
%jmp/1 T_0.9, 6;
%dup/vec4;
%pushi/vec4 10, 0, 4;
%cmp/u;
%jmp/1 T_0.10, 6;
%dup/vec4;
%pushi/vec4 11, 0, 4;
%cmp/u;
%jmp/1 T_0.11, 6;
%dup/vec4;
%pushi/vec4 12, 0, 4;
%cmp/u;
%jmp/1 T_0.12, 6;
%dup/vec4;
%pushi/vec4 13, 0, 4;
%cmp/u;
%jmp/1 T_0.13, 6;
%dup/vec4;
%pushi/vec4 14, 0, 4;
%cmp/u;
%jmp/1 T_0.14, 6;
%dup/vec4;
%pushi/vec4 15, 0, 4;
%cmp/u;
%jmp/1 T_0.15, 6;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%add;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.0 ;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%add;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.1 ;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%sub;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.2 ;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%mul;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.3 ;
%load/vec4 v0x600002508870_0;
%cmpi/ne 0, 0, 32;
%jmp/0xz T_0.18, 4;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%div;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.19;
T_0.18 ;
%vpi_call 3 34 "$display", "We cannot divide by 0" {0 0 0};
%pushi/vec4 4294967295, 0, 32;
%store/vec4 v0x600002508750_0, 0, 32;
T_0.19 ;
%jmp T_0.17;
T_0.4 ;
%load/vec4 v0x600002508630_0;
%ix/load 4, 1, 0;
%flag_set/imm 4, 0;
%shiftl 4;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.5 ;
%load/vec4 v0x600002508630_0;
%ix/load 4, 1, 0;
%flag_set/imm 4, 0;
%shiftr 4;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.6 ;
%load/vec4 v0x600002508630_0;
%parti/s 31, 0, 2;
%load/vec4 v0x600002508630_0;
%parti/s 1, 31, 6;
%concat/vec4; draw_concat_vec4
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.7 ;
%load/vec4 v0x600002508630_0;
%parti/s 1, 0, 2;
%load/vec4 v0x600002508630_0;
%parti/s 31, 1, 2;
%concat/vec4; draw_concat_vec4
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.8 ;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%and;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.9 ;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%or;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.10 ;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%xor;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.11 ;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%or;
%inv;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.12 ;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%and;
%inv;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.13 ;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%cmp/u;
%flag_get/vec4 5;
%pad/u 32;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.14 ;
%load/vec4 v0x600002508630_0;
%parti/s 1, 31, 6;
%load/vec4 v0x600002508870_0;
%parti/s 1, 31, 6;
%cmp/ne;
%jmp/0xz T_0.20, 4;
%load/vec4 v0x600002508870_0;
%parti/s 1, 31, 6;
%load/vec4 v0x600002508630_0;
%parti/s 1, 31, 6;
%cmp/u;
%jmp/0xz T_0.22, 5;
%pushi/vec4 1, 0, 32;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.23;
T_0.22 ;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x600002508750_0, 0, 32;
T_0.23 ;
%jmp T_0.21;
T_0.20 ;
%load/vec4 v0x600002508630_0;
%load/vec4 v0x600002508870_0;
%cmp/u;
%jmp/0xz T_0.24, 5;
%pushi/vec4 1, 0, 32;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.25;
T_0.24 ;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x600002508750_0, 0, 32;
T_0.25 ;
T_0.21 ;
%jmp T_0.17;
T_0.15 ;
%load/vec4 v0x600002508630_0;
%store/vec4 v0x600002508d80_0, 0, 32;
%load/vec4 v0x600002508870_0;
%store/vec4 v0x600002508c60_0, 0, 32;
T_0.26 ;
%load/vec4 v0x600002508c60_0;
%cmpi/s 0, 0, 32;
%flag_or 5, 4; GT is !LE
%flag_inv 5;
%jmp/0xz T_0.27, 5;
%load/vec4 v0x600002508d80_0;
%parti/s 1, 31, 6;
%load/vec4 v0x600002508d80_0;
%parti/s 31, 1, 2;
%concat/vec4; draw_concat_vec4
%store/vec4 v0x600002508d80_0, 0, 32;
%load/vec4 v0x600002508c60_0;
%subi 1, 0, 32;
%store/vec4 v0x600002508c60_0, 0, 32;
%jmp T_0.26;
T_0.27 ;
%load/vec4 v0x600002508d80_0;
%store/vec4 v0x600002508750_0, 0, 32;
%jmp T_0.17;
T_0.17 ;
%pop/vec4 1;
%jmp T_0;
.thread T_0, $push;
.scope S_0x7fd004104910;
T_1 ;
%wait E_0x60000020aac0;
%load/vec4 v0x600002508750_0;
%cmpi/e 0, 0, 32;
%flag_mov 8, 4;
%jmp/0 T_1.0, 8;
%pushi/vec4 1, 0, 2;
%jmp/1 T_1.1, 8;
T_1.0 ; End of true expr.
%pushi/vec4 0, 0, 2;
%jmp/0 T_1.1, 8;
; End of false expr.
%blend;
T_1.1;
%pad/s 1;
%assign/vec4 v0x600002508e10_0, 0;
%jmp T_1;
.thread T_1, $push;
.scope S_0x7fd004104d50;
T_2 ;
%vpi_call 2 19 "$dumpfile", "alutestbench.vcd" {0 0 0};
%end;
.thread T_2;
.scope S_0x7fd004104d50;
T_3 ;
%vpi_call 2 20 "$dumpvars", 32'sb00000000000000000000000000000000, S_0x7fd004104d50 {0 0 0};
%end;
.thread T_3;
.scope S_0x7fd004104d50;
T_4 ;
%vpi_call 2 35 "$monitor", "Time: %0dns | A: %h | B: %h | ALU_Sel: %b | ALU_Out: %h | CarryOut: %b | Zero: %b", $time, v0x600002508ea0_0, v0x600002509050_0, v0x600002508fc0_0, v0x600002508f30_0, v0x6000025090e0_0, v0x600002509170_0 {0 0 0};
%pushi/vec4 5, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 3, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 0, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 5, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 3, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 1, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 2, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 3, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 2, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 6, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 2, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 3, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 1, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 4, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 2, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 5, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 2147483648, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 6, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 2147483648, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 7, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 4042322160, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 252645135, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 8, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 4042322160, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 252645135, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 9, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 4042322160, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 252645135, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 10, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 4042322160, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 252645135, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 11, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 4042322160, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 252645135, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 12, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 5, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 10, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 13, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 4294967291, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 4294967286, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 14, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%pushi/vec4 4294967288, 0, 32;
%store/vec4 v0x600002508ea0_0, 0, 32;
%pushi/vec4 2, 0, 32;
%store/vec4 v0x600002509050_0, 0, 32;
%pushi/vec4 15, 0, 4;
%store/vec4 v0x600002508fc0_0, 0, 4;
%delay 10000, 0;
%vpi_call 2 134 "$finish" {0 0 0};
%end;
.thread T_4;
# The file index is used to find the file name in the following table.
:file_names 4;
"N/A";
"<interactive>";
"ALU_TB.v";
"./ALU.v";