Skip to content

Parse Error for Inverter Gate #111

Open

Description

@kwmartin

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions