Files
sv2v/test/core/interface_struct_param.v
Zachary Snow b2fe865e17 fix interface modport substitution strategy
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.
2021-07-20 22:36:59 -04:00

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