-
Notifications
You must be signed in to change notification settings - Fork 437
Expand file tree
/
Copy patherrors.sv
More file actions
224 lines (192 loc) · 4.46 KB
/
errors.sv
File metadata and controls
224 lines (192 loc) · 4.46 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
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
// RUN: circt-translate --import-verilog --verify-diagnostics --split-input-file %s
// REQUIRES: slang
// Internal issue in Slang v3 about jump depending on uninitialised value.
// UNSUPPORTED: valgrind
// expected-error @below {{expected ';'}}
module Foo 4;
endmodule
// -----
// expected-note @below {{expanded from macro 'FOO'}}
`define FOO input
// expected-note @below {{expanded from macro 'BAR'}}
`define BAR `FOO
// expected-error @below {{expected identifier}}
module Bar(`BAR);
endmodule
// -----
module Foo;
mailbox a;
string b;
// expected-error @below {{value of type 'string' cannot be assigned to type 'mailbox'}}
initial a = b;
endmodule
// -----
module Foo;
// expected-error @below {{unsupported module member}}
nettype real x;
endmodule
// -----
module Foo;
// expected-error @+2 {{unsupported type}}
// expected-note @+1 {{untyped}}
interconnect x;
endmodule
// -----
module Foo;
int x;
bit y;
// expected-error @below {{unsupported non-blocking assignment timing control: SignalEvent}}
initial x <= @y x;
endmodule
// -----
module Foo;
int x;
// expected-error @below {{implicit events cannot be used here}}
initial x = @* x;
endmodule
// -----
module Foo;
int a;
// expected-error @below {{unsupported statement}}
initial release a;
endmodule
// -----
module Foo;
bit x, y;
// expected-error @below {{match patterns in if conditions not supported}}
initial if (x matches 42) x = y;
endmodule
// -----
module Foo;
int a, b[3];
// expected-error @below {{unpacked arrays in 'inside' expressions not supported}}
int c = a inside { b };
endmodule
// -----
module Foo;
int a, b, c;
int j;
initial begin
// expected-error @below {{streaming operator target size 32 does not fit source size 96}}
j = {>>{ a, b, c }}; // error: j is 32 bits < 96 bits
end
endmodule
// -----
module Foo;
int a, b, c;
int j;
initial begin
// expected-error @below {{streaming operator target size 96 does not fit source size 23}}
{>>{ a, b, c }} = 23'b1;
end
endmodule
// -----
module Foo;
initial begin
logic [15:0] vec_0;
logic [47:0] vec_1;
logic arr [63:0];
int c;
// expected-error @below {{Moore only support streaming concatenation with fixed size 'with expression'}}
vec_1 = {<<byte{vec_0, arr with [c:0]}};
end
endmodule
// -----
module Foo;
initial begin
int my_queue[];
logic [31:0] vec_0;
// expected-error @below {{expression of type '!moore.open_uarray<i32>' cannot be cast to a simple bit vector}}
vec_0 = {<<byte{my_queue}};
end
endmodule
// -----
module Foo;
// expected-remark @below {{hello}}
$info("hello");
// expected-warning @below {{hello}}
$warning("hello");
endmodule
// -----
module Foo;
// expected-error @below {{hello}}
$error("hello");
endmodule
// -----
module Foo;
// expected-error @below {{hello}}
$fatal(0, "hello");
endmodule
// -----
function Foo;
// expected-error @below {{unsupported format specifier `%l`}}
$write("%l");
endfunction
// -----
function Foo;
// expected-error @below {{string format specifier with width not supported}}
$write("%42s", "foo");
endfunction
// -----
function time Foo;
// expected-error @below {{time value is larger than 18446744073709549568 fs}}
return 100000s;
endfunction
// -----
module Foo;
// expected-error @below {{unsupported type: associative arrays with wildcard index}}
int x[*];
endmodule
// -----
function void foo;
struct packed { time t; } a;
int b;
// expected-error @below {{contains a time type}}
a = b;
endfunction
// -----
function void foo;
int a;
struct packed { time t; } b;
// expected-error @below {{contains a time type}}
a = b;
endfunction
// -----
module Foo;
string b;
// expected-error @below {{expected integer argument for system call `$past`}}
assert property ($past(b));
endmodule
// -----
function Foo;
logic [1:0] a;
// expected-error @below {{unsupported system call `$fwrite`}}
$fwrite(32'h0, "%x", a);
endfunction
// -----
module Foo;
string s;
byte b;
initial begin
// expected-error @below {{string index assignment not supported}}
s[0] = b;
end
endmodule
// -----
interface I;
// expected-error @below {{unsupported interface member: ProceduralBlock}}
initial begin
end
endinterface
module Top;
I i();
endmodule
// -----
interface PortedIf
(input logic clk);
endinterface
module Foo
(input logic clk);
// expected-error @below {{unsupported interface instance connections}}
PortedIf if0(clk);
endmodule