mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-01 10:06:19 +02:00
interface conversion respects shadowed variables
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
module top;
|
||||
task i_x;
|
||||
input reg [31:0] i;
|
||||
$display("I x(%0d)", i);
|
||||
endtask
|
||||
wire [31:0] w = 31;
|
||||
wire [31:0] y = 42;
|
||||
task x;
|
||||
input reg [31:0] a, b;
|
||||
$display("x('{%0d, %0d})", a, b);
|
||||
endtask
|
||||
task automatic z;
|
||||
input reg [31:0] a, b;
|
||||
$display("z('{%0d, %0d})", a, b);
|
||||
endtask
|
||||
initial begin
|
||||
i_x(y);
|
||||
x(w, y);
|
||||
z(w, y);
|
||||
end
|
||||
endmodule
|
||||
Reference in New Issue
Block a user