Skip to content

Commit dbc5d24

Browse files
committed
Verilog: test for non-constant parameter
1 parent aeecd2e commit dbc5d24

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
parameters10.v
3+
--bound 0
4+
^file .* line 6: expected constant expression, but got `main\.x'$
5+
^EXIT=2$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module main;
2+
3+
wire x;
4+
5+
// x is not a constant
6+
parameter p = x;
7+
8+
endmodule

0 commit comments

Comments
 (0)