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

syntax error in IEEE mintypmax_expression #671

Closed
veripoolbot opened this issue Aug 28, 2013 · 2 comments
Closed

syntax error in IEEE mintypmax_expression #671

veripoolbot opened this issue Aug 28, 2013 · 2 comments
Assignees

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Arnaud Turier
Original Redmine Issue: 671 from https://www.veripool.org
Original Date: 2013-08-28
Original Assignee: Wilson Snyder (@wsnyder)


Hi,

I got an issue when the parser reads a mintypmax expression.

Such a parameter definition makes the parser to report a syntax error:
parameter tcyc = 5 : 10 : 20 ;

$ vhier mytest.v
%Error: mytest.v:5: syntax error, unexpected ':', expecting ';'

However, if the mintypmax expression is surround by brackets, it is OK:
parameter tacc = (2 : 4 : 8) ;

I checked in the documentation regarding Verilog syntax and it is seems it is not mandatory to surround by brackets the mintypmax expressions in parameter definitions. I tried to invoke vhier with --language option set to '1800-2012' and I got the same error.

I am working on Verilog models from third parties I can not modify.

Thank you

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2013-08-29T12:32:32Z


Thanks for the report. Fixed in git towards 3.402.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2013-10-17T11:18:24Z


In 3.402.

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

No branches or pull requests

2 participants