You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running in to an issue where sv2v is creating circular references with parameters. I don't currently have a minimal example to share, but sv2v is generating code like this:
Error (10234): Verilog HDL Defparam Statement error at fpga.v(1467): parameter "_param_6FA32_KEEP_W" cannot be assigned to its own value -- can't resolve self-referential loop File: /home/alex/Projects/.../fpga.v Line: 1467
Error (10234): Verilog HDL Defparam Statement error at fpga.v(1461): parameter "KEEP_W" cannot be assigned to its own value -- can't resolve self-referential loop File: /home/alex/Projects/.../fpga.v Line: 1461
The text was updated successfully, but these errors were encountered:
module top;
localparam _param_B1C85_DATA_W = 16;
generate
if (1) begin : t
localparam DATA_W = _param_B1C85_DATA_W;
wire [15:0] tdata;
end
if (1) begin : mod2_inst
localparam DATA_W = _param_B1C85_DATA_W;
localparam _param_B1C85_DATA_W = DATA_W;
if (1) begin : t
localparam DATA_W = _param_B1C85_DATA_W;
wire [15:0] tdata;
end
if (1) begin : mod1_inst
localparam DATA_W = _param_B1C85_DATA_W;
end
end
endgenerate
endmodule
I am running in to an issue where sv2v is creating circular references with parameters. I don't currently have a minimal example to share, but sv2v is generating code like this:
This causes Quartus to complain:
The text was updated successfully, but these errors were encountered: