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

Possible error with 'type' parameters #85

Closed
veripoolbot opened this issue May 11, 2009 · 3 comments
Closed

Possible error with 'type' parameters #85

veripoolbot opened this issue May 11, 2009 · 3 comments
Assignees

Comments

@veripoolbot
Copy link
Collaborator


Author Name: David A
Original Redmine Issue: 85 from https://www.veripool.org
Original Date: 2009-05-11
Original Assignee: Wilson Snyder (@wsnyder)


Hi,

I've tested an example code in MG QuestaSim and it compiles/elaborates correctly. I'm attaching this example. In this example I instantiate a parameterizable module (with "type" parameters) inside another module. On the instantiation, a datatype is passed as an actual argument, and vhier exits with the following error:

%Error: mem_switch.sv:72: syntax error, unexpected "TYPE-IDENTIFIER", expecting "IDENTIFIER"
%Error: mem_switch.sv:80: syntax error, unexpected "TYPE-IDENTIFIER", expecting "IDENTIFIER"
%Error: testModule.sv:30: syntax error, unexpected "TYPE-IDENTIFIER", expecting "IDENTIFIER"

Download all files to the same directory.

From within that directory the command line that generated this error is:
vhier gpkg.sv mem_1r1w_beh.sv mem_switch.sv testModule.sv

Thanks,
David

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: David A
Original Date: 2009-05-11T18:04:47Z


Copying the error for clear presentation:

%Error: mem_switch.sv:72: syntax error, unexpected "TYPE-IDENTIFIER", expecting "IDENTIFIER"

%Error: mem_switch.sv:80: syntax error, unexpected "TYPE-IDENTIFIER", expecting "IDENTIFIER"

%Error: testModule.sv:30: syntax error, unexpected "TYPE-IDENTIFIER", expecting "IDENTIFIER"

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2009-05-12T00:46:19Z


This is fixed in the git version and will be in the next release.

Thanks for the test case, it's a good one.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2009-05-19T14:16:35Z


In 3.210

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