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
Segmentation fault with variable of parameterized interface #692
Comments
Original Redmine Comment This is a problem with the dead code eliminator. With --debug I fixed it to at least crash with an internal error, the real fix will take a bit of work, please stay tuned; if you want a work around use the interface with default parameters elsewhere or change the default parameters to match those needed in the instance. |
Original Redmine Comment This issue is not particular for parameterized interface. Parameterized module will also fail in this case. An alternative workaround by using a temporary variable:
|
Original Redmine Comment Based on the observation that it works in AstAssignW, I come up the following patch for fixing this issue. Initial regression test seems OK.
Please have a look. |
Original Redmine Comment FYI, the reason I get back to this issue is we have some incorrect simulation results from Verilator. It turns out that Verilator doesn't handle the pin assignment (involving an expression of interface members) correctly. The above patch fixes this issue as well. |
Original Redmine Comment Love patches! Fix looks right on, thanks for debugging. Fixed in git towards 3.861. |
Original Redmine Comment In 3.862. |
Author Name: Jie Xu (@jiexu)
Original Redmine Issue: 692 from https://www.veripool.org
Original Date: 2013-10-30
Original Assignee: Jie Xu (@jiexu)
Compiling the following code causes Verilator ending with Segmentation fault:
The test case in Verilator regression format can be pulled here: https://github.com/jiexu/verilator paraInterface
The text was updated successfully, but these errors were encountered: