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

26.6 Exporting imported names from packages #1217

Closed
veripoolbot opened this issue Sep 20, 2017 · 5 comments
Closed

26.6 Exporting imported names from packages #1217

veripoolbot opened this issue Sep 20, 2017 · 5 comments
Assignees
Labels
resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800

Comments

@veripoolbot
Copy link
Contributor


Author Name: Usuario Eda
Original Redmine Issue: 1217 from https://www.veripool.org

Original Assignee: Wilson Snyder (@wsnyder)


Inside a System Verilog package using import somepackage::*' works fine. The problem arises when using export somepackage::*'.

The following example demonstrate a simple case where $ verilator --lint-only top.sv' fails with error code: syntax error, unexpected PACKAGE-IDENTIFIER, expecting STRING'.
Other Eda tools like Vivado correctly interprets the export names.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2017-09-21T01:05:14Z


Note some vendors don't seem to support export ::, but straightfoward enough to support all of them.

Fixed in git towards 3.911. Please give it a try.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Usuario Eda
Original Date: 2017-09-21T07:55:26Z


It is working now after commit 89c8449. Thank you very much for the quick action.
Usuario Eda wrote:

Inside a System Verilog package using import somepackage::*' works fine. The problem arises when using export somepackage::*'.

The following example demonstrate a simple case where $ verilator --lint-only top.sv' fails with error code: syntax error, unexpected PACKAGE-IDENTIFIER, expecting STRING'.
Other Eda tools like Vivado correctly interprets the export names.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Usuario Eda
Original Date: 2017-09-21T08:11:34Z


I see that the git tag verilator_3_911' is not published (only up to version verilator_3_910'). Is it possible that it wasn't pushed?
Usuario Eda wrote:

It is working now after commit 89c8449. Thank you very much for the quick action.
Usuario Eda wrote:

Inside a System Verilog package using import somepackage::*' works fine. The problem arises when using export somepackage::*'.

The following example demonstrate a simple case where $ verilator --lint-only top.sv' fails with error code: syntax error, unexpected PACKAGE-IDENTIFIER, expecting STRING'.
Other Eda tools like Vivado correctly interprets the export names.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2017-09-21T10:31:13Z


It is fixed in git and called 3.911 while in development, when released it will be called 3.912. (Even numbers are released, like the Kernel.)

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2017-09-23T14:17:01Z


In 3.912.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800
Projects
None yet
Development

No branches or pull requests

2 participants