-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadc
executable file
·129 lines (129 loc) · 3.68 KB
/
adc
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
#! /usr/local/bin/vvp
:ivl_version "13.0 (devel)" "(s20221226-328-ga9ef00676)";
:ivl_delay_selection "TYPICAL";
:vpi_time_precision - 7;
:vpi_module "/usr/local/lib/ivl/system.vpi";
:vpi_module "/usr/local/lib/ivl/vhdl_sys.vpi";
:vpi_module "/usr/local/lib/ivl/vhdl_textio.vpi";
:vpi_module "/usr/local/lib/ivl/v2005_math.vpi";
:vpi_module "/usr/local/lib/ivl/va_math.vpi";
S_0x5608a36be510 .scope module, "adc" "adc" 2 5;
.timescale -7 -7;
.port_info 0 /INPUT 1 "Clk";
.port_info 1 /INPUT 1 "Comp";
.port_info 2 /INPUT 1 "Start";
.port_info 3 /OUTPUT 1 "Sample";
.port_info 4 /OUTPUT 1 "Done";
.port_info 5 /OUTPUT 6 "Result";
P_0x5608a36f57d0 .param/l "Bits" 0 2 10, +C4<00000000000000000000000000000110>;
o0x7f7f7a078018 .functor BUFZ 1, c4<z>; HiZ drive
v0x5608a36bd0b0_0 .net "Clk", 0 0, o0x7f7f7a078018; 0 drivers
o0x7f7f7a078048 .functor BUFZ 1, c4<z>; HiZ drive
v0x5608a370a470_0 .net "Comp", 0 0, o0x7f7f7a078048; 0 drivers
v0x5608a370a530_0 .var "Done", 0 0;
v0x5608a370a600_0 .var "Result", 5 0;
v0x5608a370a6e0_0 .var "Running", 0 0;
v0x5608a370a7f0_0 .var "SR", 5 0;
v0x5608a370a8d0_0 .var "Sample", 0 0;
o0x7f7f7a078168 .functor BUFZ 1, c4<z>; HiZ drive
v0x5608a370a990_0 .net "Start", 0 0, o0x7f7f7a078168; 0 drivers
E_0x5608a36f5ad0 .event posedge, v0x5608a36bd0b0_0;
.scope S_0x5608a36be510;
T_0 ;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x5608a370a530_0, 0, 1;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x5608a370a8d0_0, 0, 1;
%pushi/vec4 0, 0, 6;
%store/vec4 v0x5608a370a600_0, 0, 6;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x5608a370a6e0_0, 0, 1;
%end;
.thread T_0;
.scope S_0x5608a36be510;
T_1 ;
%wait E_0x5608a36f5ad0;
%load/vec4 v0x5608a370a6e0_0;
%flag_set/vec4 8;
%jmp/0xz T_1.0, 8;
%load/vec4 v0x5608a370a8d0_0;
%flag_set/vec4 8;
%jmp/0xz T_1.2, 8;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x5608a370a8d0_0, 0;
%pushi/vec4 1, 0, 1;
%ix/load 4, 5, 0;
%ix/load 5, 0, 0;
%flag_set/imm 4, 0;
%assign/vec4/off/d v0x5608a370a7f0_0, 4, 5;
%pushi/vec4 1, 0, 1;
%ix/load 4, 5, 0;
%ix/load 5, 0, 0;
%flag_set/imm 4, 0;
%assign/vec4/off/d v0x5608a370a600_0, 4, 5;
%jmp T_1.3;
T_1.2 ;
%load/vec4 v0x5608a370a7f0_0;
%pad/u 32;
%cmpi/ne 0, 0, 32;
%jmp/0xz T_1.4, 4;
%load/vec4 v0x5608a370a470_0;
%flag_set/vec4 8;
%jmp/0 T_1.6, 8;
%load/vec4 v0x5608a370a600_0;
%load/vec4 v0x5608a370a7f0_0;
%inv;
%and;
%jmp/1 T_1.7, 8;
T_1.6 ; End of true expr.
%load/vec4 v0x5608a370a600_0;
%jmp/0 T_1.7, 8;
; End of false expr.
%blend;
T_1.7;
%load/vec4 v0x5608a370a7f0_0;
%ix/load 4, 1, 0;
%flag_set/imm 4, 0;
%shiftr 4;
%or;
%assign/vec4 v0x5608a370a600_0, 0;
%load/vec4 v0x5608a370a7f0_0;
%ix/load 4, 1, 0;
%flag_set/imm 4, 0;
%shiftr 4;
%assign/vec4 v0x5608a370a7f0_0, 0;
%load/vec4 v0x5608a370a7f0_0;
%pad/u 32;
%cmpi/e 1, 0, 32;
%jmp/0xz T_1.8, 4;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x5608a370a6e0_0, 0;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0x5608a370a530_0, 0;
T_1.8 ;
T_1.4 ;
T_1.3 ;
%jmp T_1.1;
T_1.0 ;
%load/vec4 v0x5608a370a990_0;
%flag_set/vec4 8;
%jmp/0xz T_1.10, 8;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0x5608a370a6e0_0, 0;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0x5608a370a8d0_0, 0;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x5608a370a530_0, 0;
%pushi/vec4 0, 0, 6;
%assign/vec4 v0x5608a370a7f0_0, 0;
%pushi/vec4 0, 0, 6;
%assign/vec4 v0x5608a370a600_0, 0;
T_1.10 ;
T_1.1 ;
%jmp T_1;
.thread T_1;
# The file index is used to find the file name in the following table.
:file_names 3;
"N/A";
"<interactive>";
"/tmp/adc.v";