mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 01:18:10 +02:00
fix interface conversion erroneously renaming colliding pattern names
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
interface Interface;
|
||||
logic x;
|
||||
endinterface
|
||||
|
||||
module Module (
|
||||
Interface p
|
||||
);
|
||||
typedef struct packed {
|
||||
integer p;
|
||||
} S;
|
||||
S s = '{ p: 1 };
|
||||
initial $display("%0d %0d", s, s.p);
|
||||
endmodule
|
||||
|
||||
module top;
|
||||
Interface intf();
|
||||
Module mod(intf);
|
||||
endmodule
|
||||
@@ -0,0 +1,3 @@
|
||||
module top;
|
||||
initial $display("%0d %0d", 1, 1);
|
||||
endmodule
|
||||
Reference in New Issue
Block a user