-
Notifications
You must be signed in to change notification settings - Fork 0
/
step2
executable file
·386 lines (386 loc) · 11.3 KB
/
step2
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
#! /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_0x55d96a84db00 .scope module, "tb" "tb" 2 124;
.timescale 0 0;
v0x55d96a868c50_0 .var "clk", 0 0;
v0x55d96a868d10_0 .net "i2c_scl", 0 0, L_0x55d96a879610; 1 drivers
v0x55d96a868de0_0 .net "i2c_sda", 0 0, v0x55d96a868970_0; 1 drivers
v0x55d96a868ee0_0 .var "rst", 0 0;
S_0x55d96a84dc80 .scope module, "u0" "step2" 2 131, 2 1 0, S_0x55d96a84db00;
.timescale 0 0;
.port_info 0 /INPUT 1 "clk"
.port_info 1 /INPUT 1 "rst"
.port_info 2 /OUTPUT 1 "i2c_sda"
.port_info 3 /OUTPUT 1 "i2c_scl"
P_0x55d96a837a20 .param/l "STATE_ADDR" 1 2 12, +C4<00000000000000000000000000000010>;
P_0x55d96a837a60 .param/l "STATE_DATA" 1 2 15, +C4<00000000000000000000000000000101>;
P_0x55d96a837aa0 .param/l "STATE_IDLE" 1 2 10, +C4<00000000000000000000000000000000>;
P_0x55d96a837ae0 .param/l "STATE_RW" 1 2 13, +C4<00000000000000000000000000000011>;
P_0x55d96a837b20 .param/l "STATE_START" 1 2 11, +C4<00000000000000000000000000000001>;
P_0x55d96a837b60 .param/l "STATE_STOP" 1 2 16, +C4<00000000000000000000000000000110>;
P_0x55d96a837ba0 .param/l "STATE_WACK" 1 2 14, +C4<00000000000000000000000000000100>;
P_0x55d96a837be0 .param/l "STATE_WACK2" 1 2 17, +C4<00000000000000000000000000000111>;
L_0x55d96a843920 .functor NOT 2, L_0x55d96a879290, C4<00>, C4<00>, C4<00>;
v0x55d96a80e300_0 .var "DEBUG_STATE", 127 0;
v0x55d96a867c70_0 .net *"_s0", 31 0, L_0x55d96a868fb0; 1 drivers
v0x55d96a867d50_0 .net *"_s10", 1 0, L_0x55d96a879290; 1 drivers
L_0x7fb2f7e0d0f0 .functor BUFT 1, C4<0>, C4<0>, C4<0>, C4<0>;
v0x55d96a867e40_0 .net *"_s13", 0 0, L_0x7fb2f7e0d0f0; 1 drivers
v0x55d96a867f20_0 .net *"_s14", 1 0, L_0x55d96a843920; 1 drivers
v0x55d96a868050_0 .net *"_s16", 1 0, L_0x55d96a879450; 1 drivers
L_0x7fb2f7e0d018 .functor BUFT 1, C4<0000000000000000000000000000000>, C4<0>, C4<0>, C4<0>;
v0x55d96a868130_0 .net *"_s3", 30 0, L_0x7fb2f7e0d018; 1 drivers
L_0x7fb2f7e0d060 .functor BUFT 1, C4<00000000000000000000000000000000>, C4<0>, C4<0>, C4<0>;
v0x55d96a868210_0 .net/2u *"_s4", 31 0, L_0x7fb2f7e0d060; 1 drivers
v0x55d96a8682f0_0 .net *"_s6", 0 0, L_0x55d96a879120; 1 drivers
L_0x7fb2f7e0d0a8 .functor BUFT 1, C4<01>, C4<0>, C4<0>, C4<0>;
v0x55d96a8683b0_0 .net/2u *"_s8", 1 0, L_0x7fb2f7e0d0a8; 1 drivers
v0x55d96a868490_0 .var "addr", 6 0;
v0x55d96a868570_0 .net "clk", 0 0, v0x55d96a868c50_0; 1 drivers
v0x55d96a868630_0 .var "count", 7 0;
v0x55d96a868710_0 .var "data", 7 0;
v0x55d96a8687f0_0 .net "i2c_scl", 0 0, L_0x55d96a879610; alias, 1 drivers
v0x55d96a8688b0_0 .var "i2c_scl_enable", 0 0;
v0x55d96a868970_0 .var "i2c_sda", 0 0;
v0x55d96a868a30_0 .net "rst", 0 0, v0x55d96a868ee0_0; 1 drivers
v0x55d96a868af0_0 .var "state", 7 0;
E_0x55d96a843560 .event edge, v0x55d96a868af0_0;
E_0x55d96a844a90 .event posedge, v0x55d96a868570_0;
E_0x55d96a80eaf0 .event negedge, v0x55d96a868570_0;
L_0x55d96a868fb0 .concat [ 1 31 0 0], v0x55d96a8688b0_0, L_0x7fb2f7e0d018;
L_0x55d96a879120 .cmp/eq 32, L_0x55d96a868fb0, L_0x7fb2f7e0d060;
L_0x55d96a879290 .concat [ 1 1 0 0], v0x55d96a868c50_0, L_0x7fb2f7e0d0f0;
L_0x55d96a879450 .functor MUXZ 2, L_0x55d96a843920, L_0x7fb2f7e0d0a8, L_0x55d96a879120, C4<>;
L_0x55d96a879610 .part L_0x55d96a879450, 0, 1;
.scope S_0x55d96a84dc80;
T_0 ;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x55d96a8688b0_0, 0, 1;
%end;
.thread T_0;
.scope S_0x55d96a84dc80;
T_1 ;
%wait E_0x55d96a80eaf0;
%load/vec4 v0x55d96a868a30_0;
%pad/u 32;
%cmpi/e 1, 0, 32;
%jmp/0xz T_1.0, 4;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x55d96a8688b0_0, 0;
%jmp T_1.1;
T_1.0 ;
%load/vec4 v0x55d96a868af0_0;
%pad/u 32;
%cmpi/e 0, 0, 32;
%flag_mov 8, 4;
%load/vec4 v0x55d96a868af0_0;
%pad/u 32;
%cmpi/e 1, 0, 32;
%flag_or 4, 8;
%flag_mov 8, 4;
%load/vec4 v0x55d96a868af0_0;
%pad/u 32;
%cmpi/e 6, 0, 32;
%flag_or 4, 8;
%jmp/0xz T_1.2, 4;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0x55d96a8688b0_0, 0;
T_1.2 ;
T_1.1 ;
%jmp T_1;
.thread T_1;
.scope S_0x55d96a84dc80;
T_2 ;
%wait E_0x55d96a844a90;
%load/vec4 v0x55d96a868a30_0;
%pad/u 32;
%cmpi/e 1, 0, 32;
%jmp/0xz T_2.0, 4;
%pushi/vec4 0, 0, 8;
%assign/vec4 v0x55d96a868af0_0, 0;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0x55d96a868970_0, 0;
%pushi/vec4 80, 0, 7;
%assign/vec4 v0x55d96a868490_0, 0;
%pushi/vec4 0, 0, 8;
%assign/vec4 v0x55d96a868630_0, 0;
%pushi/vec4 170, 0, 8;
%assign/vec4 v0x55d96a868710_0, 0;
%jmp T_2.1;
T_2.0 ;
%load/vec4 v0x55d96a868af0_0;
%dup/vec4;
%pushi/vec4 0, 0, 8;
%cmp/u;
%jmp/1 T_2.2, 6;
%dup/vec4;
%pushi/vec4 1, 0, 8;
%cmp/u;
%jmp/1 T_2.3, 6;
%dup/vec4;
%pushi/vec4 2, 0, 8;
%cmp/u;
%jmp/1 T_2.4, 6;
%dup/vec4;
%pushi/vec4 3, 0, 8;
%cmp/u;
%jmp/1 T_2.5, 6;
%dup/vec4;
%pushi/vec4 4, 0, 8;
%cmp/u;
%jmp/1 T_2.6, 6;
%dup/vec4;
%pushi/vec4 5, 0, 8;
%cmp/u;
%jmp/1 T_2.7, 6;
%dup/vec4;
%pushi/vec4 7, 0, 8;
%cmp/u;
%jmp/1 T_2.8, 6;
%dup/vec4;
%pushi/vec4 6, 0, 8;
%cmp/u;
%jmp/1 T_2.9, 6;
%jmp T_2.10;
T_2.2 ;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0x55d96a868970_0, 0;
%pushi/vec4 1, 0, 8;
%assign/vec4 v0x55d96a868af0_0, 0;
%jmp T_2.10;
T_2.3 ;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x55d96a868970_0, 0;
%pushi/vec4 2, 0, 8;
%assign/vec4 v0x55d96a868af0_0, 0;
%pushi/vec4 6, 0, 8;
%assign/vec4 v0x55d96a868630_0, 0;
%jmp T_2.10;
T_2.4 ;
%load/vec4 v0x55d96a868490_0;
%load/vec4 v0x55d96a868630_0;
%part/u 1;
%assign/vec4 v0x55d96a868970_0, 0;
%load/vec4 v0x55d96a868630_0;
%pad/u 32;
%cmpi/e 0, 0, 32;
%jmp/0xz T_2.11, 4;
%pushi/vec4 3, 0, 8;
%assign/vec4 v0x55d96a868af0_0, 0;
%jmp T_2.12;
T_2.11 ;
%load/vec4 v0x55d96a868630_0;
%subi 1, 0, 8;
%assign/vec4 v0x55d96a868630_0, 0;
T_2.12 ;
%jmp T_2.10;
T_2.5 ;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0x55d96a868970_0, 0;
%pushi/vec4 1, 0, 8;
%assign/vec4 v0x55d96a868af0_0, 0;
%jmp T_2.10;
T_2.6 ;
%pushi/vec4 1, 0, 8;
%assign/vec4 v0x55d96a868af0_0, 0;
%pushi/vec4 7, 0, 8;
%assign/vec4 v0x55d96a868630_0, 0;
%jmp T_2.10;
T_2.7 ;
%load/vec4 v0x55d96a868710_0;
%load/vec4 v0x55d96a868630_0;
%part/u 1;
%assign/vec4 v0x55d96a868970_0, 0;
%load/vec4 v0x55d96a868630_0;
%pad/u 32;
%cmpi/e 0, 0, 32;
%jmp/0xz T_2.13, 4;
%pushi/vec4 4, 0, 8;
%assign/vec4 v0x55d96a868af0_0, 0;
%jmp T_2.14;
T_2.13 ;
%load/vec4 v0x55d96a868630_0;
%subi 1, 0, 8;
%assign/vec4 v0x55d96a868630_0, 0;
T_2.14 ;
%jmp T_2.10;
T_2.8 ;
%pushi/vec4 6, 0, 8;
%assign/vec4 v0x55d96a868af0_0, 0;
%jmp T_2.10;
T_2.9 ;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0x55d96a868970_0, 0;
%pushi/vec4 0, 0, 8;
%assign/vec4 v0x55d96a868af0_0, 0;
%jmp T_2.10;
T_2.10 ;
%pop/vec4 1;
T_2.1 ;
%jmp T_2;
.thread T_2;
.scope S_0x55d96a84dc80;
T_3 ;
%wait E_0x55d96a843560;
%load/vec4 v0x55d96a868af0_0;
%dup/vec4;
%pushi/vec4 0, 0, 8;
%cmp/u;
%jmp/1 T_3.0, 6;
%dup/vec4;
%pushi/vec4 1, 0, 8;
%cmp/u;
%jmp/1 T_3.1, 6;
%dup/vec4;
%pushi/vec4 2, 0, 8;
%cmp/u;
%jmp/1 T_3.2, 6;
%dup/vec4;
%pushi/vec4 3, 0, 8;
%cmp/u;
%jmp/1 T_3.3, 6;
%dup/vec4;
%pushi/vec4 4, 0, 8;
%cmp/u;
%jmp/1 T_3.4, 6;
%dup/vec4;
%pushi/vec4 5, 0, 8;
%cmp/u;
%jmp/1 T_3.5, 6;
%dup/vec4;
%pushi/vec4 6, 0, 8;
%cmp/u;
%jmp/1 T_3.6, 6;
%dup/vec4;
%pushi/vec4 7, 0, 8;
%cmp/u;
%jmp/1 T_3.7, 6;
%jmp T_3.8;
T_3.0 ;
%pushi/vec4 0, 0, 32; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 1229212741, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%store/vec4 v0x55d96a80e300_0, 0, 128;
%jmp T_3.8;
T_3.1 ;
%pushi/vec4 0, 0, 32; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 83, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 1413567060, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%store/vec4 v0x55d96a80e300_0, 0, 128;
%jmp T_3.8;
T_3.2 ;
%pushi/vec4 0, 0, 32; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 1094992978, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%store/vec4 v0x55d96a80e300_0, 0, 128;
%jmp T_3.8;
T_3.3 ;
%pushi/vec4 0, 0, 32; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 21079, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%store/vec4 v0x55d96a80e300_0, 0, 128;
%jmp T_3.8;
T_3.4 ;
%pushi/vec4 0, 0, 32; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 1463894859, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%store/vec4 v0x55d96a80e300_0, 0, 128;
%jmp T_3.8;
T_3.5 ;
%pushi/vec4 0, 0, 32; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 1145132097, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%store/vec4 v0x55d96a80e300_0, 0, 128;
%jmp T_3.8;
T_3.6 ;
%pushi/vec4 0, 0, 32; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 1398034256, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%store/vec4 v0x55d96a80e300_0, 0, 128;
%jmp T_3.8;
T_3.7 ;
%pushi/vec4 0, 0, 32; draw_string_vec4
%pushi/vec4 0, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 87, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%pushi/vec4 1094929202, 0, 32; draw_string_vec4
%concat/vec4; draw_string_vec4
%store/vec4 v0x55d96a80e300_0, 0, 128;
%jmp T_3.8;
T_3.8 ;
%pop/vec4 1;
%jmp T_3;
.thread T_3, $push;
.scope S_0x55d96a84db00;
T_4 ;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x55d96a868c50_0, 0, 1;
T_4.0 ;
%delay 5, 0;
%load/vec4 v0x55d96a868c50_0;
%inv;
%store/vec4 v0x55d96a868c50_0, 0, 1;
%jmp T_4.0;
%end;
.thread T_4;
.scope S_0x55d96a84db00;
T_5 ;
%pushi/vec4 1, 0, 1;
%store/vec4 v0x55d96a868ee0_0, 0, 1;
%delay 10, 0;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x55d96a868ee0_0, 0, 1;
%end;
.thread T_5;
.scope S_0x55d96a84db00;
T_6 ;
%delay 5000, 0;
%vpi_call 2 160 "$finish" {0 0 0};
%end;
.thread T_6;
.scope S_0x55d96a84db00;
T_7 ;
%vpi_call 2 165 "$dumpfile", "step2.vcd" {0 0 0};
%vpi_call 2 166 "$dumpvars" {0 0 0};
%end;
.thread T_7;
# The file index is used to find the file name in the following table.
:file_names 3;
"N/A";
"<interactive>";
"step2.v";