Skip to content

Commit 3ca84d1

Browse files
committed
KNOWNBUG test for module port constraints
This reproduces the second instance of #635.
1 parent 8fe2c5e commit 3ca84d1

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
ports9.sv
3+
--bound 1
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
This gives the wrong answer.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module sub(input in, output logic data);
2+
3+
assign data = in;
4+
5+
endmodule
6+
7+
module main;
8+
logic subout;
9+
10+
sub sub_inst(.data(subout));
11+
12+
// The value of the output needs to be able to change
13+
cover property (##1 subout != $past(subout));
14+
15+
endmodule

0 commit comments

Comments
 (0)