Skip to content

Parse Error for Inverter Gate #111

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant