mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 01:18:10 +02:00
The interface conversion no longer substitutes parameters immediately, instead fully scoping modports and allowing hierarchical constants to be resolved separately. This fixes an issue where struct parameters could lose their type information during substitution. The conversion also now handles renaming references to the module or interface top-level scope.
15 lines
442 B
Verilog
15 lines
442 B
Verilog
module top;
|
|
initial begin
|
|
$display("intf.P.x %0d", 1);
|
|
$display("intf.P.y %0d", 2);
|
|
$display("intf.P.x %0d", 4);
|
|
$display("intf.P.y %0d", 6);
|
|
$display("intf.P.x %0d", 4);
|
|
$display("intf.P.y %0d", 6);
|
|
$display("mod.f.x %b", {8'd1, 16'd2});
|
|
$display("mod.f.y %b", 32'h1);
|
|
$display("mod.f.x %b", {8'd4, 16'd6});
|
|
$display("mod.f.y %b", 32'hF);
|
|
end
|
|
endmodule
|