Skip to content

Commit d539aa9

Browse files
authored
Merge pull request #1512 from diffblue/implicit_declaration1
KNOWNBUG test for type of implicit net
2 parents 106dac2 + 90c803b commit d539aa9

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
implicit_declaration1.sv
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
This gives the wrong answer.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module main;
2+
3+
// 1800-2017 6.10: continuous assignment statements can trigger an
4+
// implicit declaration of a "scalar net of default net type".
5+
assign some_net0 = 'b10;
6+
assign some_net1 = 'b11;
7+
8+
initial assert($bits(some_net0) == 1 && some_net0 == 0);
9+
initial assert($bits(some_net1) == 1 && some_net1 == 1);
10+
11+
endmodule

0 commit comments

Comments
 (0)