-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
FILTER
executable file
·457 lines (457 loc) · 13.6 KB
/
FILTER
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
444
445
446
447
448
449
450
451
452
453
454
455
456
457
#! /usr/bin/vvp
:ivl_version "10.3 (stable)";
:ivl_delay_selection "TYPICAL";
:vpi_time_precision + 0;
:vpi_module "system";
:vpi_module "vhdl_sys";
:vpi_module "v2005_math";
:vpi_module "va_math";
S_0x558c538027f0 .scope module, "filter5x5_tb" "filter5x5_tb" 2 1;
.timescale 0 0;
v0x558c538270d0_0 .var "Din", 7 0;
v0x558c538271b0_0 .net "Dout", 15 0, L_0x558c53827ca0; 1 drivers
v0x558c53827280_0 .var "clk", 0 0;
v0x558c53827380_0 .var "data_valid", 0 0;
v0x558c53827450_0 .net "fill_now", 0 0, L_0x558c53827950; 1 drivers
v0x558c538274f0_0 .var "rst", 0 0;
S_0x558c53802970 .scope module, "UUT" "filter5x5" 2 9, 3 11 0, S_0x558c538027f0;
.timescale 0 0;
.port_info 0 /INPUT 8 "Din"
.port_info 1 /INPUT 1 "data_valid"
.port_info 2 /INPUT 1 "rst"
.port_info 3 /INPUT 1 "clk"
.port_info 4 /OUTPUT 1 "fill_now"
.port_info 5 /OUTPUT 16 "Dout"
P_0x558c537be030 .param/l "CONVOLUTE" 0 3 27, C4<11>;
P_0x558c537be070 .param/l "FIX" 0 3 27, C4<10>;
P_0x558c537be0b0 .param/l "IDLE" 0 3 27, C4<00>;
P_0x558c537be0f0 .param/l "M" 0 3 28, +C4<00000000000000000000000000000101>;
P_0x558c537be130 .param/l "N" 0 3 28, +C4<00000000000000000000000000000101>;
P_0x558c537be170 .param/l "STORE" 0 3 27, C4<01>;
L_0x558c537f6710 .functor OR 1, L_0x558c538275f0, L_0x558c53827740, C4<0>, C4<0>;
v0x558c537f0f10_0 .net "Din", 7 0, v0x558c538270d0_0; 1 drivers
v0x558c53825410_0 .net "Dout", 15 0, L_0x558c53827ca0; alias, 1 drivers
v0x558c538254f0_0 .var "NS", 1 0;
v0x558c538255e0_0 .var "PS", 1 0;
L_0x7f0b87a30018 .functor BUFT 1, C4<10>, C4<0>, C4<0>, C4<0>;
v0x558c538256c0_0 .net/2u *"_s0", 1 0, L_0x7f0b87a30018; 1 drivers
L_0x7f0b87a300a8 .functor BUFT 1, C4<0>, C4<0>, C4<0>, C4<0>;
v0x558c538257f0_0 .net/2u *"_s10", 0 0, L_0x7f0b87a300a8; 1 drivers
L_0x7f0b87a300f0 .functor BUFT 1, C4<1>, C4<0>, C4<0>, C4<0>;
v0x558c538258d0_0 .net/2u *"_s12", 0 0, L_0x7f0b87a300f0; 1 drivers
L_0x7f0b87a30138 .functor BUFT 1, C4<11>, C4<0>, C4<0>, C4<0>;
v0x558c538259b0_0 .net/2u *"_s16", 1 0, L_0x7f0b87a30138; 1 drivers
v0x558c53825a90_0 .net *"_s18", 0 0, L_0x558c53827b80; 1 drivers
v0x558c53825b50_0 .net *"_s2", 0 0, L_0x558c538275f0; 1 drivers
o0x7f0b87a791f8 .functor BUFZ 16, C4<zzzzzzzzzzzzzzzz>; HiZ drive
; Elide local net with no drivers, v0x558c53825c10_0 name=_s20
L_0x7f0b87a30060 .functor BUFT 1, C4<11>, C4<0>, C4<0>, C4<0>;
v0x558c53825cf0_0 .net/2u *"_s4", 1 0, L_0x7f0b87a30060; 1 drivers
v0x558c53825dd0_0 .net *"_s6", 0 0, L_0x558c53827740; 1 drivers
v0x558c53825e90_0 .net *"_s8", 0 0, L_0x558c537f6710; 1 drivers
v0x558c53825f50_0 .net "clk", 0 0, v0x558c53827280_0; 1 drivers
v0x558c53826010_0 .var/i "count", 31 0;
v0x558c538260f0_0 .net "data_valid", 0 0, v0x558c53827380_0; 1 drivers
v0x558c538261b0_0 .net "fill_now", 0 0, L_0x558c53827950; alias, 1 drivers
v0x558c53826270_0 .var/i "i", 31 0;
v0x558c53826350 .array "image_kernal", 8 0, 7 0;
v0x558c53826410_0 .var/i "j", 31 0;
v0x558c538264f0_0 .var/i "k", 31 0;
v0x558c538265d0_0 .var "r0", 7 0;
v0x558c538266b0_0 .var "r1", 7 0;
v0x558c53826790_0 .var "r2", 7 0;
v0x558c53826870_0 .var "r3", 7 0;
v0x558c53826950_0 .var "r4", 7 0;
v0x558c53826a30_0 .var "r5", 7 0;
v0x558c53826b10_0 .var "r6", 7 0;
v0x558c53826bf0_0 .var "r7", 7 0;
v0x558c53826cd0_0 .var "r8", 7 0;
v0x558c53826db0_0 .var "result", 15 0;
v0x558c53826e90_0 .net "rst", 0 0, v0x558c538274f0_0; 1 drivers
v0x558c53826f50 .array "storage", 24 0, 7 0;
E_0x558c537f4a50/0 .event edge, v0x558c538255e0_0, v0x558c538264f0_0, v0x558c53826010_0, v0x558c53826270_0;
E_0x558c537f4a50/1 .event edge, v0x558c538260f0_0, v0x558c537f0f10_0;
E_0x558c537f4a50 .event/or E_0x558c537f4a50/0, E_0x558c537f4a50/1;
E_0x558c53803880 .event posedge, v0x558c53825f50_0;
E_0x558c53802da0 .event posedge, v0x558c53826e90_0, v0x558c53825f50_0;
L_0x558c538275f0 .cmp/eq 2, v0x558c538255e0_0, L_0x7f0b87a30018;
L_0x558c53827740 .cmp/eq 2, v0x558c538255e0_0, L_0x7f0b87a30060;
L_0x558c53827950 .functor MUXZ 1, L_0x7f0b87a300f0, L_0x7f0b87a300a8, L_0x558c537f6710, C4<>;
L_0x558c53827b80 .cmp/eq 2, v0x558c538255e0_0, L_0x7f0b87a30138;
L_0x558c53827ca0 .functor MUXZ 16, o0x7f0b87a791f8, v0x558c53826db0_0, L_0x558c53827b80, C4<>;
.scope S_0x558c53802970;
T_0 ;
%wait E_0x558c53802da0;
%load/vec4 v0x558c53826e90_0;
%flag_set/vec4 8;
%jmp/0xz T_0.0, 8;
%pushi/vec4 0, 0, 2;
%assign/vec4 v0x558c538255e0_0, 0;
%jmp T_0.1;
T_0.0 ;
%load/vec4 v0x558c538254f0_0;
%assign/vec4 v0x558c538255e0_0, 0;
T_0.1 ;
%jmp T_0;
.thread T_0;
.scope S_0x558c53802970;
T_1 ;
%wait E_0x558c53803880;
%load/vec4 v0x558c538260f0_0;
%flag_set/vec4 8;
%jmp/0xz T_1.0, 8;
%load/vec4 v0x558c537f0f10_0;
%ix/getv/s 3, v0x558c53826270_0;
%ix/load 4, 0, 0; Constant delay
%assign/vec4/a/d v0x558c53826f50, 0, 4;
%load/vec4 v0x558c53826270_0;
%cmpi/e 24, 0, 32;
%flag_mov 8, 4;
%jmp/0 T_1.2, 8;
%pushi/vec4 0, 0, 32;
%jmp/1 T_1.3, 8;
T_1.2 ; End of true expr.
%load/vec4 v0x558c53826270_0;
%addi 1, 0, 32;
%jmp/0 T_1.3, 8;
; End of false expr.
%blend;
T_1.3;
%assign/vec4 v0x558c53826270_0, 0;
%jmp T_1.1;
T_1.0 ;
%pushi/vec4 0, 0, 32;
%assign/vec4 v0x558c53826270_0, 0;
T_1.1 ;
%jmp T_1;
.thread T_1;
.scope S_0x558c53802970;
T_2 ;
%wait E_0x558c537f4a50;
%load/vec4 v0x558c538255e0_0;
%dup/vec4;
%pushi/vec4 0, 0, 2;
%cmp/u;
%jmp/1 T_2.0, 6;
%dup/vec4;
%pushi/vec4 1, 0, 2;
%cmp/u;
%jmp/1 T_2.1, 6;
%dup/vec4;
%pushi/vec4 2, 0, 2;
%cmp/u;
%jmp/1 T_2.2, 6;
%dup/vec4;
%pushi/vec4 3, 0, 2;
%cmp/u;
%jmp/1 T_2.3, 6;
%jmp T_2.4;
T_2.0 ;
%pushi/vec4 0, 0, 16;
%store/vec4 v0x558c53826db0_0, 0, 16;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x558c53826010_0, 0, 32;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x558c53826410_0, 0, 32;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x558c538264f0_0, 0, 32;
%load/vec4 v0x558c538260f0_0;
%flag_set/vec4 8;
%jmp/0xz T_2.5, 8;
%pushi/vec4 1, 0, 2;
%store/vec4 v0x558c538254f0_0, 0, 2;
%jmp T_2.6;
T_2.5 ;
%pushi/vec4 0, 0, 2;
%store/vec4 v0x558c538254f0_0, 0, 2;
T_2.6 ;
%jmp T_2.4;
T_2.1 ;
%load/vec4 v0x558c53826270_0;
%cmpi/e 24, 0, 32;
%flag_mov 8, 4;
%jmp/0 T_2.7, 8;
%pushi/vec4 2, 0, 2;
%jmp/1 T_2.8, 8;
T_2.7 ; End of true expr.
%pushi/vec4 1, 0, 2;
%jmp/0 T_2.8, 8;
; End of false expr.
%blend;
T_2.8;
%store/vec4 v0x558c538254f0_0, 0, 2;
%jmp T_2.4;
T_2.2 ;
%ix/getv/s 4, v0x558c53826410_0;
%load/vec4a v0x558c53826f50, 4;
%ix/load 4, 0, 0;
%flag_set/imm 4, 0;
%store/vec4a v0x558c53826350, 4, 0;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 1, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%ix/load 4, 1, 0;
%flag_set/imm 4, 0;
%store/vec4a v0x558c53826350, 4, 0;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 2, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%ix/load 4, 2, 0;
%flag_set/imm 4, 0;
%store/vec4a v0x558c53826350, 4, 0;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 5, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%ix/load 4, 3, 0;
%flag_set/imm 4, 0;
%store/vec4a v0x558c53826350, 4, 0;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 6, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%ix/load 4, 4, 0;
%flag_set/imm 4, 0;
%store/vec4a v0x558c53826350, 4, 0;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 7, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%ix/load 4, 5, 0;
%flag_set/imm 4, 0;
%store/vec4a v0x558c53826350, 4, 0;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 10, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%ix/load 4, 6, 0;
%flag_set/imm 4, 0;
%store/vec4a v0x558c53826350, 4, 0;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 11, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%ix/load 4, 7, 0;
%flag_set/imm 4, 0;
%store/vec4a v0x558c53826350, 4, 0;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 12, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%ix/load 4, 8, 0;
%flag_set/imm 4, 0;
%store/vec4a v0x558c53826350, 4, 0;
%ix/getv/s 4, v0x558c53826410_0;
%load/vec4a v0x558c53826f50, 4;
%store/vec4 v0x558c538265d0_0, 0, 8;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 1, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%store/vec4 v0x558c538266b0_0, 0, 8;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 2, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%store/vec4 v0x558c53826790_0, 0, 8;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 5, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%store/vec4 v0x558c53826870_0, 0, 8;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 6, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%store/vec4 v0x558c53826950_0, 0, 8;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 7, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%store/vec4 v0x558c53826a30_0, 0, 8;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 10, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%store/vec4 v0x558c53826b10_0, 0, 8;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 11, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%store/vec4 v0x558c53826bf0_0, 0, 8;
%load/vec4 v0x558c53826410_0;
%pad/s 33;
%addi 12, 0, 33;
%ix/vec4/s 4;
%load/vec4a v0x558c53826f50, 4;
%store/vec4 v0x558c53826cd0_0, 0, 8;
%pushi/vec4 3, 0, 2;
%store/vec4 v0x558c538254f0_0, 0, 2;
%jmp T_2.4;
T_2.3 ;
%ix/load 4, 0, 0;
%flag_set/imm 4, 0;
%load/vec4a v0x558c53826350, 4;
%pad/u 16;
%ix/load 4, 1, 0;
%flag_set/imm 4, 0;
%load/vec4a v0x558c53826350, 4;
%pad/u 16;
%muli 2, 0, 16;
%add;
%ix/load 4, 2, 0;
%flag_set/imm 4, 0;
%load/vec4a v0x558c53826350, 4;
%pad/u 16;
%add;
%ix/load 4, 6, 0;
%flag_set/imm 4, 0;
%load/vec4a v0x558c53826350, 4;
%pad/u 16;
%sub;
%ix/load 4, 7, 0;
%flag_set/imm 4, 0;
%load/vec4a v0x558c53826350, 4;
%pad/u 16;
%muli 2, 0, 16;
%sub;
%ix/load 4, 8, 0;
%flag_set/imm 4, 0;
%load/vec4a v0x558c53826350, 4;
%pad/u 16;
%sub;
%store/vec4 v0x558c53826db0_0, 0, 16;
%load/vec4 v0x558c53826010_0;
%addi 1, 0, 32;
%store/vec4 v0x558c53826010_0, 0, 32;
%load/vec4 v0x558c53826010_0;
%cmpi/ne 9, 0, 32;
%jmp/0xz T_2.9, 4;
%load/vec4 v0x558c538264f0_0;
%cmpi/ne 3, 0, 32;
%jmp/0xz T_2.11, 4;
%load/vec4 v0x558c53826410_0;
%addi 1, 0, 32;
%store/vec4 v0x558c53826410_0, 0, 32;
%load/vec4 v0x558c538264f0_0;
%addi 1, 0, 32;
%store/vec4 v0x558c538264f0_0, 0, 32;
%pushi/vec4 2, 0, 2;
%store/vec4 v0x558c538254f0_0, 0, 2;
%jmp T_2.12;
T_2.11 ;
%load/vec4 v0x558c53826410_0;
%addi 3, 0, 32;
%store/vec4 v0x558c53826410_0, 0, 32;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x558c538264f0_0, 0, 32;
%pushi/vec4 2, 0, 2;
%store/vec4 v0x558c538254f0_0, 0, 2;
T_2.12 ;
%jmp T_2.10;
T_2.9 ;
%pushi/vec4 0, 0, 2;
%store/vec4 v0x558c538254f0_0, 0, 2;
T_2.10 ;
%jmp T_2.4;
T_2.4 ;
%pop/vec4 1;
%jmp T_2;
.thread T_2, $push;
.scope S_0x558c538027f0;
T_3 ;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x558c53827280_0, 0, 1;
%vpi_call 2 14 "$dumpfile", "vcd/filter5x5.vcd" {0 0 0};
%vpi_call 2 15 "$dumpvars", 32'sb00000000000000000000000000000000, S_0x558c538027f0 {0 0 0};
%pushi/vec4 1, 0, 1;
%store/vec4 v0x558c538274f0_0, 0, 1;
%pushi/vec4 0, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x558c53827380_0, 0, 1;
%delay 2, 0;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x558c538274f0_0, 0, 1;
%pushi/vec4 1, 0, 1;
%store/vec4 v0x558c53827380_0, 0, 1;
%pushi/vec4 35, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 85, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 20, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 245, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 76, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 86, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 17, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 170, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 174, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 205, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 198, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 68, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 231, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 217, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%pushi/vec4 240, 0, 8;
%store/vec4 v0x558c538270d0_0, 0, 8;
%delay 2, 0;
%delay 1000, 0;
%vpi_call 2 53 "$finish" {0 0 0};
%end;
.thread T_3;
.scope S_0x558c538027f0;
T_4 ;
%load/vec4 v0x558c53827280_0;
%inv;
%store/vec4 v0x558c53827280_0, 0, 1;
%delay 1, 0;
%jmp T_4;
.thread T_4;
# The file index is used to find the file name in the following table.
:file_names 4;
"N/A";
"<interactive>";
"testbenches/filter5x5_tb.v";
"design/filter5x5.v";