-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: assert: elab_expr.cc:2673: failed assertion base_index.size()+1 == net->packed_dimensions() #1134
Comments
Running into a very similar issue while trying to use a packed struct.
|
Unpacked arrays of packed structs are not yet fully supported. But if you can use a packed array, e.g.
that does work. |
Packed arrays do work for the sample above, but it DON'T work for the sample where there are packed arrays in the struct. Sample: typedef struct packed {
logic [1:0] a, b;
} test_t;
module test;
test_t [0:1] tests = '{'{2'b01, 2'b10}, '{2'b10, 2'b01}};
wire [1:0] w;
assign w = tests[0].a;
endmodule It throws
when it is a packed array, and it throws the same error as above when it is an unpacked array. |
Same error here: .svh: .sv: debugInfo_t arrDebugInfo[0:63]; _tb.sv: ... icarus: |
There is some bug when working out my SystemVerilog project. After reduction, the minimal sample that triggers this error could be:
The detailed output of the error is:
The compiling command is:
Icarus-Verilog version:
uname -a
output for my computer:The text was updated successfully, but these errors were encountered: