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

Fix verilog file parsing error #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix verilog file parsing error #87

wants to merge 1 commit into from

Conversation

joeywang4
Copy link

When the parser encounters a gate name, it will not skip this name but throws an error of expected opening parenthesis.
For example, the following verilog file will cause this error:

module top(x1, x2, z);
    input x1, x2;
    output z;
    and aaa(z, x1, x2); // Error due to the gate name "aaa"
endmodule

I fixed this bug by simply calling the Ver_ParseGetName function to skip the gate name.

When the parser encounters a gate name, it will not skip this name but throws an error of `expected opening parenthesis`.
For example, the following verilog file will cause this error:
module top(x1, x2, z);
    input x1, x2;
    output z;
    and aaa(z, x1, x2);
endmodule

I fixed this bug by simply calling the `Ver_ParseGetName` function to skip the gate name.
@functionpointer
Copy link

Encountered this bug too. Great fix!

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

Successfully merging this pull request may close these issues.

2 participants