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

Verilog parser won't detect an instance within generate #305

Closed
feddischson opened this issue Jan 21, 2018 · 1 comment
Closed

Verilog parser won't detect an instance within generate #305

feddischson opened this issue Jan 21, 2018 · 1 comment

Comments

@feddischson
Copy link

The following is not detected correctly by verilog_parser.py:

module name;
genvar i;
  generate
    for( i=0; i < 10; i = i + 1 ) 
      begin: INST_GEN
        true1 instance_name1();
    end
  endgenerate
endmodule

It takes INST_GEN instead of true1.

A unit test to demonstrate this can be found here. I further added a pull-request for this unit-test.

@feddischson
Copy link
Author

I haven't been able to fix this after a short view on the code.
Also multiple cascaded generate loops needs to be handled somehow.

kraigher added a commit to feddischson/vunit that referenced this issue Jan 21, 2018
kraigher added a commit to feddischson/vunit that referenced this issue Jan 21, 2018
feddischson pushed a commit to feddischson/vunit that referenced this issue Feb 3, 2018
feddischson pushed a commit to feddischson/vunit that referenced this issue Feb 3, 2018
nathanaelhuffman pushed a commit to nathanaelhuffman/vunit that referenced this issue Jul 30, 2018
nathanaelhuffman pushed a commit to nathanaelhuffman/vunit that referenced this issue Jul 30, 2018
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

1 participant