Skip to content
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

Question: Embedding comments in parameter lists #408

Closed
veripoolbot opened this issue Oct 28, 2011 · 3 comments
Closed

Question: Embedding comments in parameter lists #408

veripoolbot opened this issue Oct 28, 2011 · 3 comments
Labels

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Ray Stevens
Original Redmine Message: 618 from https://www.veripool.org


If you need verilog-mode to properly parse an included file that has multi-line parameter lists with embedded comments, then this simple patch might be helpful. As mentioned elsewhere, the current best approach is to list each parameter in a separate verilog statement. But I was dealing with a generated file so that was not an easy option for me. This 2 line edit did the trick, and allowed verilog-mode to successfully read in my parameters.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2011-10-28T17:21:42Z


Well done. I'll take this, but first please post an example that needs it so I can add it to the tests (or it'll break in a year ;)

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Ray Stevens
Original Date: 2011-10-28T18:28:46Z


Thanks!

I've attached 2 verilog files that demonstrate the patch. Put them both in the same directory, and then recompute AUTOs in testMultiLineParamsInclude.v. You should see an incorrect auto-sense list without the patch, and a correct list with the patch.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2011-10-28T22:43:02Z


In rev722, thanks for the work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant