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

Parse Error for Inverter Gate #111

Open
kwmartin opened this issue Oct 11, 2022 · 0 comments
Open

Parse Error for Inverter Gate #111

kwmartin opened this issue Oct 11, 2022 · 0 comments

Comments

@kwmartin
Copy link

The following parses fine:

`timescale 1ps/10fs
module dg_inv (in,out,vdd,vss);
input in,vdd,vss;
output out;
    not #(20) inv (out,in);
endmodule

Also, the following parses fine:

`timescale 1ps/10fs
module dg_inv (in,out,vdd,vss);
input in,vdd,vss;
output out;
    not (out,in);
endmodule

However, the following gives a parsing error:

`timescale 1ps/10fs
module dg_inv (in,out,vdd,vss);
input in,vdd,vss;
output out;
    not #(20) (out,in);
endmodule

From Syntax table 7-1 for gate instantiation, it appears to me that name_of_gate_instance is optional and that the last case should parse as being correct?

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