Skip to content

Commit 81e3778

Browse files
committed
Verilog: KNOWNBUG test for parameter in port binding
The parameter is not expanded to its value in the port binding.
1 parent 883173b commit 81e3778

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
ports4.v
3+
--bound 0
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
The parameter in the module instance port binding is not expanded.

regression/verilog/modules/ports4.v

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module submodule(input [7:0] data);
2+
3+
always assert p0: data == 123;
4+
5+
endmodule
6+
7+
module main#(parameter MY_PARAMETER = 123)();
8+
9+
submodule instance(MY_PARAMETER);
10+
11+
always assert p1: MY_PARAMETER == 123;
12+
13+
endmodule

0 commit comments

Comments
 (0)