Skip to content

Commit 195103b

Browse files
committed
Verilog: KNOWNBUG test for port connection that has typedef name
1 parent 5075331 commit 195103b

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
port_connection1.sv
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
This does not parse.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module M(input [31:0] some_name);
2+
3+
initial assert (some_name == 123);
4+
5+
endmodule
6+
7+
module main;
8+
9+
// typedef with the same name as a port
10+
typedef bit [31:0] some_name;
11+
12+
// This fails to parse with Icarus Verilog,
13+
// but works with VCS, Questa, Xcelium, Riviera
14+
M my_instance(.some_name(123));
15+
16+
endmodule

0 commit comments

Comments
 (0)