-
Notifications
You must be signed in to change notification settings - Fork 0
/
decoder
175 lines (175 loc) · 4.36 KB
/
decoder
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.0 (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_0x55797739cd40 .scope module, "decoder" "decoder" 2 3;
.timescale 0 0;
.port_info 0 /INPUT 1 "clk"
.port_info 1 /INPUT 32 "instr"
.port_info 2 /OUTPUT 5 "rd"
.port_info 3 /OUTPUT 5 "rs1"
.port_info 4 /OUTPUT 5 "rs2"
.port_info 5 /OUTPUT 7 "opCode"
.port_info 6 /OUTPUT 32 "imm"
.port_info 7 /OUTPUT 3 "fun3"
.port_info 8 /OUTPUT 7 "fun7"
o0x7f9981776018 .functor BUFZ 1, C4<z>; HiZ drive
v0x55797739cfa0_0 .net "clk", 0 0, o0x7f9981776018; 0 drivers
v0x5579773bcf80_0 .var "fun3", 2 0;
v0x5579773bd060_0 .var "fun7", 6 0;
v0x5579773bd120_0 .var "imm", 31 0;
o0x7f99817760d8 .functor BUFZ 32, C4<zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz>; HiZ drive
v0x5579773bd200_0 .net "instr", 31 0, o0x7f99817760d8; 0 drivers
v0x5579773bd330_0 .var "opCode", 6 0;
v0x5579773bd410_0 .var "rd", 4 0;
v0x5579773bd4f0_0 .var "rs1", 4 0;
v0x5579773bd5d0_0 .var "rs2", 4 0;
E_0x5579773927e0 .event edge, v0x5579773bd200_0;
.scope S_0x55797739cd40;
T_0 ;
%wait E_0x5579773927e0;
%load/vec4 v0x5579773bd200_0;
%parti/s 5, 7, 4;
%assign/vec4 v0x5579773bd410_0, 0;
%load/vec4 v0x5579773bd200_0;
%parti/s 5, 15, 5;
%assign/vec4 v0x5579773bd4f0_0, 0;
%load/vec4 v0x5579773bd200_0;
%parti/s 5, 20, 6;
%assign/vec4 v0x5579773bd5d0_0, 0;
%load/vec4 v0x5579773bd200_0;
%parti/s 7, 0, 2;
%assign/vec4 v0x5579773bd330_0, 0;
%load/vec4 v0x5579773bd200_0;
%parti/s 3, 12, 5;
%assign/vec4 v0x5579773bcf80_0, 0;
%load/vec4 v0x5579773bd200_0;
%parti/s 7, 25, 6;
%assign/vec4 v0x5579773bd060_0, 0;
%load/vec4 v0x5579773bd200_0;
%parti/s 7, 0, 2;
%dup/vec4;
%pushi/vec4 19, 0, 7;
%cmp/u;
%jmp/1 T_0.0, 6;
%dup/vec4;
%pushi/vec4 51, 0, 7;
%cmp/u;
%jmp/1 T_0.1, 6;
%dup/vec4;
%pushi/vec4 55, 0, 7;
%cmp/u;
%jmp/1 T_0.2, 6;
%dup/vec4;
%pushi/vec4 23, 0, 7;
%cmp/u;
%jmp/1 T_0.3, 6;
%dup/vec4;
%pushi/vec4 111, 0, 7;
%cmp/u;
%jmp/1 T_0.4, 6;
%dup/vec4;
%pushi/vec4 103, 0, 7;
%cmp/u;
%jmp/1 T_0.5, 6;
%dup/vec4;
%pushi/vec4 99, 0, 7;
%cmp/u;
%jmp/1 T_0.6, 6;
%dup/vec4;
%pushi/vec4 3, 0, 7;
%cmp/u;
%jmp/1 T_0.7, 6;
%dup/vec4;
%pushi/vec4 35, 0, 7;
%cmp/u;
%jmp/1 T_0.8, 6;
%dup/vec4;
%pushi/vec4 15, 0, 7;
%cmp/u;
%jmp/1 T_0.9, 6;
%dup/vec4;
%pushi/vec4 115, 0, 7;
%cmp/u;
%jmp/1 T_0.10, 6;
%jmp T_0.11;
T_0.0 ;
%load/vec4 v0x5579773bd200_0;
%parti/s 12, 20, 6;
%pad/u 32;
%assign/vec4 v0x5579773bd120_0, 0;
%jmp T_0.11;
T_0.1 ;
%load/vec4 v0x5579773bd200_0;
%parti/s 12, 20, 6;
%pad/u 32;
%assign/vec4 v0x5579773bd120_0, 0;
%jmp T_0.11;
T_0.2 ;
%load/vec4 v0x5579773bd200_0;
%parti/s 20, 12, 5;
%pad/u 32;
%assign/vec4 v0x5579773bd120_0, 0;
%jmp T_0.11;
T_0.3 ;
%load/vec4 v0x5579773bd200_0;
%parti/s 20, 12, 5;
%pad/u 32;
%assign/vec4 v0x5579773bd120_0, 0;
%jmp T_0.11;
T_0.4 ;
%load/vec4 v0x5579773bd200_0;
%parti/s 20, 12, 5;
%pad/u 32;
%assign/vec4 v0x5579773bd120_0, 0;
%jmp T_0.11;
T_0.5 ;
%load/vec4 v0x5579773bd200_0;
%parti/s 12, 20, 6;
%pad/u 32;
%assign/vec4 v0x5579773bd120_0, 0;
%jmp T_0.11;
T_0.6 ;
%load/vec4 v0x5579773bd200_0;
%parti/s 7, 25, 6;
%load/vec4 v0x5579773bd200_0;
%parti/s 5, 7, 4;
%concat/vec4; draw_concat_vec4
%concati/vec4 0, 0, 1;
%pad/s 32;
%assign/vec4 v0x5579773bd120_0, 0;
%jmp T_0.11;
T_0.7 ;
%load/vec4 v0x5579773bd200_0;
%parti/s 12, 20, 6;
%pad/u 32;
%assign/vec4 v0x5579773bd120_0, 0;
%jmp T_0.11;
T_0.8 ;
%load/vec4 v0x5579773bd200_0;
%parti/s 7, 25, 6;
%load/vec4 v0x5579773bd200_0;
%parti/s 5, 7, 4;
%concat/vec4; draw_concat_vec4
%pad/u 32;
%assign/vec4 v0x5579773bd120_0, 0;
%jmp T_0.11;
T_0.9 ;
%vpi_call 2 68 "$display", "MEM mei xie" {0 0 0};
%jmp T_0.11;
T_0.10 ;
%vpi_call 2 70 "$display", "SYS mei xie" {0 0 0};
%jmp T_0.11;
T_0.11 ;
%pop/vec4 1;
%jmp T_0;
.thread T_0, $push;
# The file index is used to find the file name in the following table.
:file_names 3;
"N/A";
"<interactive>";
"decoder.v";