Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Multi dimensional variable in function causing issues #1414
Author Name: Johan Wouters
I added a small example of a structure that causes issues in our codebase. We use a function to calculate a localparam and Verilator seems to fail because the function contains a multi-dimensional variable.
The message I get is:
this is with Verilator 4.012 and swithes -sv -Wno-lint -cc test.v --top-module test
The code can be simulated, logic synthesis and logic equivalence checking also works fine
Original Redmine Comment
Sorry, forgot to reply to this when filed. This is duplicate of #�, basically at present you can't have unpacked arrays in constant functions. A woraround is to use a packed array.