Skip to content

Commit 31a1aad

Browse files
authored
Merge pull request #1267 from diffblue/port_with_value4
Verilog: KNOWNBUG test for unconnected input port with default value
2 parents 389dad2 + ed87195 commit 31a1aad

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
KNOWNBUG
2+
port_with_value1.sv
3+
4+
^\[main\.m1\.eq_a] always M\.a == 4: PROVED .*$
5+
^\[main\.m1\.eq_b] always M\.b == 5: PROVED .*$
6+
^\[main\.m1\.eq_c] always M\.c == 6: PROVED .*$
7+
^\[main\.m2\.eq_a] always M\.a == 4: PROVED .*$
8+
^\[main\.m2\.eq_b] always M\.b == 5: REFUTED$
9+
^\[main\.m2\.eq_c] always M\.c == 6: PROVED .*$
10+
^EXIT=10$
11+
^SIGNAL=0$
12+
--
13+
^warning: ignoring
14+
--
15+
This fails an assertion.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module M(input [31:0] a = 1, b = 2, c = 3);
2+
3+
eq_a: assert final (a == 4);
4+
eq_b: assert final (b == 5);
5+
eq_c: assert final (c == 6);
6+
7+
endmodule
8+
9+
module main;
10+
// should pass
11+
M m1(4, 5, 6);
12+
13+
// should fail -- b will be 2
14+
M m2(4, , 6);
15+
16+
endmodule

0 commit comments

Comments
 (0)