Skip to content

Commit 1b985fd

Browse files
committed
Verilog: KNOWNBUG test for port connection that has typedef name
1 parent 6bed9f0 commit 1b985fd

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
KNOWNBUG
2+
port_connection1.sv
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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 with Icarus Verilog
13+
M instance(.some_name(123));
14+
15+
endmodule

0 commit comments

Comments
 (0)