-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask2
More file actions
171 lines (171 loc) · 6.26 KB
/
task2
File metadata and controls
171 lines (171 loc) · 6.26 KB
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
#! /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_0x560ce308b6d0 .scope module, "wb" "wb" 2 48;
.timescale 0 0;
v0x560ce30a9040_0 .net "a", 0 15, v0x560ce3090560_0; 1 drivers
v0x560ce30a9120_0 .net "b", 0 15, v0x560ce30a7630_0; 1 drivers
v0x560ce30a9230_0 .net "c", 0 15, v0x560ce30a7710_0; 1 drivers
v0x560ce30a9320_0 .net "clk", 0 0, v0x560ce30a8680_0; 1 drivers
v0x560ce30a9410_0 .net "d", 0 15, v0x560ce30a7890_0; 1 drivers
v0x560ce30a9570_0 .net "din", 0 15, v0x560ce30a8840_0; 1 drivers
v0x560ce30a9680_0 .net "e", 0 15, v0x560ce30a7aa0_0; 1 drivers
v0x560ce30a9790_0 .net "en", 0 0, v0x560ce30a89e0_0; 1 drivers
v0x560ce30a9880_0 .net "f", 0 15, v0x560ce30a7c40_0; 1 drivers
v0x560ce30a99d0_0 .net "g", 0 15, v0x560ce30a7d20_0; 1 drivers
v0x560ce30a9ae0_0 .net "h", 0 15, v0x560ce30a7e00_0; 1 drivers
v0x560ce30a9bf0_0 .net "reset", 0 0, v0x560ce30a8db0_0; 1 drivers
S_0x560ce308b850 .scope module, "s1" "shift" 2 51, 2 1 0, S_0x560ce308b6d0;
.timescale 0 0;
.port_info 0 /INPUT 16 "din"
.port_info 1 /INPUT 1 "en"
.port_info 2 /INPUT 1 "clk"
.port_info 3 /INPUT 1 "reset"
.port_info 4 /OUTPUT 16 "a"
.port_info 5 /OUTPUT 16 "b"
.port_info 6 /OUTPUT 16 "c"
.port_info 7 /OUTPUT 16 "d"
.port_info 8 /OUTPUT 16 "e"
.port_info 9 /OUTPUT 16 "f"
.port_info 10 /OUTPUT 16 "g"
.port_info 11 /OUTPUT 16 "h"
v0x560ce3090560_0 .var "a", 0 15;
v0x560ce30a7630_0 .var "b", 0 15;
v0x560ce30a7710_0 .var "c", 0 15;
v0x560ce30a77d0_0 .net "clk", 0 0, v0x560ce30a8680_0; alias, 1 drivers
v0x560ce30a7890_0 .var "d", 0 15;
v0x560ce30a79c0_0 .net "din", 0 15, v0x560ce30a8840_0; alias, 1 drivers
v0x560ce30a7aa0_0 .var "e", 0 15;
v0x560ce30a7b80_0 .net "en", 0 0, v0x560ce30a89e0_0; alias, 1 drivers
v0x560ce30a7c40_0 .var "f", 0 15;
v0x560ce30a7d20_0 .var "g", 0 15;
v0x560ce30a7e00_0 .var "h", 0 15;
v0x560ce30a7ee0_0 .net "reset", 0 0, v0x560ce30a8db0_0; alias, 1 drivers
E_0x560ce3088720/0 .event negedge, v0x560ce30a7ee0_0;
E_0x560ce3088720/1 .event posedge, v0x560ce30a77d0_0;
E_0x560ce3088720 .event/or E_0x560ce3088720/0, E_0x560ce3088720/1;
S_0x560ce30a8120 .scope module, "tg1" "tg" 2 52, 2 29 0, S_0x560ce308b6d0;
.timescale 0 0;
.port_info 0 /OUTPUT 16 "din"
.port_info 1 /OUTPUT 1 "en"
.port_info 2 /OUTPUT 1 "clk"
.port_info 3 /OUTPUT 1 "reset"
.port_info 4 /INPUT 16 "a"
.port_info 5 /INPUT 16 "b"
.port_info 6 /INPUT 16 "c"
.port_info 7 /INPUT 16 "d"
.port_info 8 /INPUT 16 "e"
.port_info 9 /INPUT 16 "f"
.port_info 10 /INPUT 16 "g"
.port_info 11 /INPUT 16 "h"
v0x560ce30a83f0_0 .net "a", 0 15, v0x560ce3090560_0; alias, 1 drivers
v0x560ce30a84b0_0 .net "b", 0 15, v0x560ce30a7630_0; alias, 1 drivers
v0x560ce30a8580_0 .net "c", 0 15, v0x560ce30a7710_0; alias, 1 drivers
v0x560ce30a8680_0 .var "clk", 0 0;
v0x560ce30a8750_0 .net "d", 0 15, v0x560ce30a7890_0; alias, 1 drivers
v0x560ce30a8840_0 .var "din", 0 15;
v0x560ce30a8910_0 .net "e", 0 15, v0x560ce30a7aa0_0; alias, 1 drivers
v0x560ce30a89e0_0 .var "en", 0 0;
v0x560ce30a8ab0_0 .net "f", 0 15, v0x560ce30a7c40_0; alias, 1 drivers
v0x560ce30a8c10_0 .net "g", 0 15, v0x560ce30a7d20_0; alias, 1 drivers
v0x560ce30a8ce0_0 .net "h", 0 15, v0x560ce30a7e00_0; alias, 1 drivers
v0x560ce30a8db0_0 .var "reset", 0 0;
v0x560ce30a8e80_0 .var/i "x", 31 0;
.scope S_0x560ce308b850;
T_0 ;
%wait E_0x560ce3088720;
%load/vec4 v0x560ce30a7ee0_0;
%pad/u 32;
%cmpi/e 0, 0, 32;
%jmp/0xz T_0.0, 4;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x560ce3090560_0, 0;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x560ce30a7630_0, 0;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x560ce30a7710_0, 0;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x560ce30a7890_0, 0;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x560ce30a7aa0_0, 0;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x560ce30a7c40_0, 0;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x560ce30a7d20_0, 0;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x560ce30a7e00_0, 0;
%jmp T_0.1;
T_0.0 ;
%load/vec4 v0x560ce30a7b80_0;
%flag_set/vec4 8;
%jmp/0xz T_0.2, 8;
%load/vec4 v0x560ce30a79c0_0;
%assign/vec4 v0x560ce3090560_0, 0;
%load/vec4 v0x560ce3090560_0;
%assign/vec4 v0x560ce30a7630_0, 0;
%load/vec4 v0x560ce30a7630_0;
%assign/vec4 v0x560ce30a7710_0, 0;
%load/vec4 v0x560ce30a7710_0;
%assign/vec4 v0x560ce30a7890_0, 0;
%load/vec4 v0x560ce30a7890_0;
%assign/vec4 v0x560ce30a7aa0_0, 0;
%load/vec4 v0x560ce30a7aa0_0;
%assign/vec4 v0x560ce30a7c40_0, 0;
%load/vec4 v0x560ce30a7c40_0;
%assign/vec4 v0x560ce30a7d20_0, 0;
%load/vec4 v0x560ce30a7d20_0;
%assign/vec4 v0x560ce30a7e00_0, 0;
T_0.2 ;
T_0.1 ;
%jmp T_0;
.thread T_0;
.scope S_0x560ce30a8120;
T_1 ;
%vpi_call 2 33 "$monitor", $time, " ", " ", "din=%x en=%b clk=%b reset=%b a=%x b=%x c=%x d=%x e=%x f=%x g=%x h=%x", v0x560ce30a8840_0, v0x560ce30a89e0_0, v0x560ce30a8680_0, v0x560ce30a8db0_0, v0x560ce30a83f0_0, v0x560ce30a84b0_0, v0x560ce30a8580_0, v0x560ce30a8750_0, v0x560ce30a8910_0, v0x560ce30a8ab0_0, v0x560ce30a8c10_0, v0x560ce30a8ce0_0 {0 0 0};
%delay 1, 0;
%pushi/vec4 0, 0, 16;
%store/vec4 v0x560ce30a8840_0, 0, 16;
%pushi/vec4 1, 0, 1;
%store/vec4 v0x560ce30a89e0_0, 0, 1;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x560ce30a8db0_0, 0, 1;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x560ce30a8680_0, 0, 1;
%delay 1, 0;
%pushi/vec4 1, 0, 1;
%store/vec4 v0x560ce30a8db0_0, 0, 1;
%pushi/vec4 1, 0, 1;
%store/vec4 v0x560ce30a8680_0, 0, 1;
%pushi/vec4 1, 0, 32;
%store/vec4 v0x560ce30a8e80_0, 0, 32;
T_1.0 ;
%load/vec4 v0x560ce30a8e80_0;
%cmpi/s 64, 0, 32;
%jmp/0xz T_1.1, 5;
%delay 1, 0;
%load/vec4 v0x560ce30a8e80_0;
%pad/s 16;
%store/vec4 v0x560ce30a8840_0, 0, 16;
%load/vec4 v0x560ce30a8680_0;
%inv;
%store/vec4 v0x560ce30a8680_0, 0, 1;
%load/vec4 v0x560ce30a8e80_0;
%pushi/vec4 1, 0, 32;
%add;
%store/vec4 v0x560ce30a8e80_0, 0, 32;
%jmp T_1.0;
T_1.1 ;
%delay 1, 0;
%vpi_call 2 45 "$finish" {0 0 0};
%end;
.thread T_1;
# The file index is used to find the file name in the following table.
:file_names 3;
"N/A";
"<interactive>";
"task2.v";