-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask3
More file actions
175 lines (175 loc) · 6.08 KB
/
task3
File metadata and controls
175 lines (175 loc) · 6.08 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
172
173
174
175
#! /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_0x55763e4fa860 .scope module, "wb" "wb" 2 50;
.timescale 0 0;
v0x55763e517470_0 .net "a", 0 15, v0x55763e4e9470_0; 1 drivers
v0x55763e517550_0 .net "a_en", 0 0, v0x55763e516a30_0; 1 drivers
v0x55763e517660_0 .net "b", 0 15, v0x55763e515df0_0; 1 drivers
v0x55763e517750_0 .net "b_en", 0 0, v0x55763e516c00_0; 1 drivers
v0x55763e517840_0 .net "c", 0 15, v0x55763e515f70_0; 1 drivers
v0x55763e517980_0 .net "c_en", 0 0, v0x55763e516dc0_0; 1 drivers
v0x55763e517a70_0 .net "clk", 0 0, v0x55763e516e90_0; 1 drivers
v0x55763e517b60_0 .net "d", 0 15, v0x55763e516220_0; 1 drivers
v0x55763e517c70_0 .net "d_en", 0 0, v0x55763e517030_0; 1 drivers
v0x55763e517da0_0 .net "data", 0 15, v0x55763e517190_0; 1 drivers
v0x55763e517eb0_0 .net "reset", 0 0, v0x55763e517260_0; 1 drivers
S_0x55763e4fa9e0 .scope module, "bus1" "bus" 2 53, 2 1 0, S_0x55763e4fa860;
.timescale 0 0;
.port_info 0 /INPUT 16 "data"
.port_info 1 /INPUT 1 "clk"
.port_info 2 /INPUT 1 "a_en"
.port_info 3 /INPUT 1 "b_en"
.port_info 4 /INPUT 1 "c_en"
.port_info 5 /INPUT 1 "d_en"
.port_info 6 /INPUT 1 "reset"
.port_info 7 /OUTPUT 16 "a"
.port_info 8 /OUTPUT 16 "b"
.port_info 9 /OUTPUT 16 "c"
.port_info 10 /OUTPUT 16 "d"
v0x55763e4e9470_0 .var "a", 0 15;
v0x55763e4e9510_0 .net "a_en", 0 0, v0x55763e516a30_0; alias, 1 drivers
v0x55763e515df0_0 .var "b", 0 15;
v0x55763e515eb0_0 .net "b_en", 0 0, v0x55763e516c00_0; alias, 1 drivers
v0x55763e515f70_0 .var "c", 0 15;
v0x55763e5160a0_0 .net "c_en", 0 0, v0x55763e516dc0_0; alias, 1 drivers
v0x55763e516160_0 .net "clk", 0 0, v0x55763e516e90_0; alias, 1 drivers
v0x55763e516220_0 .var "d", 0 15;
v0x55763e516300_0 .net "d_en", 0 0, v0x55763e517030_0; alias, 1 drivers
v0x55763e5163c0_0 .net "data", 0 15, v0x55763e517190_0; alias, 1 drivers
v0x55763e5164a0_0 .net "reset", 0 0, v0x55763e517260_0; alias, 1 drivers
E_0x55763e4f8860/0 .event negedge, v0x55763e5164a0_0;
E_0x55763e4f8860/1 .event posedge, v0x55763e516160_0;
E_0x55763e4f8860 .event/or E_0x55763e4f8860/0, E_0x55763e4f8860/1;
S_0x55763e5166c0 .scope module, "tg1" "tg" 2 54, 2 25 0, S_0x55763e4fa860;
.timescale 0 0;
.port_info 0 /OUTPUT 16 "data"
.port_info 1 /OUTPUT 1 "clk"
.port_info 2 /OUTPUT 1 "a_en"
.port_info 3 /OUTPUT 1 "b_en"
.port_info 4 /OUTPUT 1 "c_en"
.port_info 5 /OUTPUT 1 "d_en"
.port_info 6 /OUTPUT 1 "reset"
.port_info 7 /INPUT 16 "a"
.port_info 8 /INPUT 16 "b"
.port_info 9 /INPUT 16 "c"
.port_info 10 /INPUT 16 "d"
v0x55763e516970_0 .net "a", 0 15, v0x55763e4e9470_0; alias, 1 drivers
v0x55763e516a30_0 .var "a_en", 0 0;
v0x55763e516b00_0 .net "b", 0 15, v0x55763e515df0_0; alias, 1 drivers
v0x55763e516c00_0 .var "b_en", 0 0;
v0x55763e516cd0_0 .net "c", 0 15, v0x55763e515f70_0; alias, 1 drivers
v0x55763e516dc0_0 .var "c_en", 0 0;
v0x55763e516e90_0 .var "clk", 0 0;
v0x55763e516f60_0 .net "d", 0 15, v0x55763e516220_0; alias, 1 drivers
v0x55763e517030_0 .var "d_en", 0 0;
v0x55763e517190_0 .var "data", 0 15;
v0x55763e517260_0 .var "reset", 0 0;
v0x55763e517330_0 .var/i "x", 31 0;
.scope S_0x55763e4fa9e0;
T_0 ;
%wait E_0x55763e4f8860;
%load/vec4 v0x55763e5164a0_0;
%pad/u 32;
%cmpi/e 0, 0, 32;
%jmp/0xz T_0.0, 4;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x55763e4e9470_0, 0;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x55763e515df0_0, 0;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x55763e515f70_0, 0;
%pushi/vec4 0, 0, 16;
%assign/vec4 v0x55763e516220_0, 0;
%jmp T_0.1;
T_0.0 ;
%load/vec4 v0x55763e4e9510_0;
%flag_set/vec4 8;
%jmp/0xz T_0.2, 8;
%load/vec4 v0x55763e5163c0_0;
%assign/vec4 v0x55763e4e9470_0, 0;
T_0.2 ;
%load/vec4 v0x55763e515eb0_0;
%flag_set/vec4 8;
%jmp/0xz T_0.4, 8;
%load/vec4 v0x55763e5163c0_0;
%assign/vec4 v0x55763e515df0_0, 0;
T_0.4 ;
%load/vec4 v0x55763e5160a0_0;
%flag_set/vec4 8;
%jmp/0xz T_0.6, 8;
%load/vec4 v0x55763e5163c0_0;
%assign/vec4 v0x55763e515f70_0, 0;
T_0.6 ;
%load/vec4 v0x55763e516300_0;
%flag_set/vec4 8;
%jmp/0xz T_0.8, 8;
%load/vec4 v0x55763e5163c0_0;
%assign/vec4 v0x55763e516220_0, 0;
T_0.8 ;
T_0.1 ;
%jmp T_0;
.thread T_0;
.scope S_0x55763e5166c0;
T_1 ;
%vpi_call 2 29 "$monitor", $time, " ", " ", "data =%x clk=%b a_en=%b b_en=%b c_en=%b d_en=%b reset=%b a=%x b=%x c=%x d=%x", v0x55763e517190_0, v0x55763e516e90_0, v0x55763e516a30_0, v0x55763e516c00_0, v0x55763e516dc0_0, v0x55763e517030_0, v0x55763e517260_0, v0x55763e516970_0, v0x55763e516b00_0, v0x55763e516cd0_0, v0x55763e516f60_0 {0 0 0};
%delay 1, 0;
%pushi/vec4 0, 0, 16;
%store/vec4 v0x55763e517190_0, 0, 16;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x55763e516e90_0, 0, 1;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x55763e517260_0, 0, 1;
%delay 1, 0;
%pushi/vec4 1, 0, 1;
%store/vec4 v0x55763e516a30_0, 0, 1;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x55763e516c00_0, 0, 1;
%pushi/vec4 1, 0, 1;
%store/vec4 v0x55763e516dc0_0, 0, 1;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x55763e517030_0, 0, 1;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x55763e517330_0, 0, 32;
T_1.0 ;
%load/vec4 v0x55763e517330_0;
%cmpi/s 8, 0, 32;
%jmp/0xz T_1.1, 5;
%load/vec4 v0x55763e517330_0;
%cmpi/e 3, 0, 32;
%jmp/0xz T_1.2, 4;
%pushi/vec4 1, 0, 1;
%store/vec4 v0x55763e517260_0, 0, 1;
T_1.2 ;
%delay 1, 0;
%load/vec4 v0x55763e517330_0;
%pad/s 16;
%store/vec4 v0x55763e517190_0, 0, 16;
%load/vec4 v0x55763e517330_0;
%pushi/vec4 1, 0, 32;
%add;
%store/vec4 v0x55763e517330_0, 0, 32;
%jmp T_1.0;
T_1.1 ;
%delay 1, 0;
%vpi_call 2 43 "$finish" {0 0 0};
%end;
.thread T_1;
.scope S_0x55763e5166c0;
T_2 ;
%delay 2, 0;
%load/vec4 v0x55763e516e90_0;
%inv;
%store/vec4 v0x55763e516e90_0, 0, 1;
%jmp T_2;
.thread T_2;
# The file index is used to find the file name in the following table.
:file_names 3;
"N/A";
"<interactive>";
"task3.v";