[sv-bc] BNF, port declarations -- proposal -- 17.5, A.1.4, A.2.1.2, A.2.3, 17-1, 17-2, 10-1


Subject: [sv-bc] BNF, port declarations -- proposal -- 17.5, A.1.4, A.2.1.2, A.2.3, 17-1, 17-2, 10-1
From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Wed Feb 26 2003 - 18:39:37 PST


The current BNF does not accept the port declaration syntax described
in section 17.5 or the analogous syntax for interfaces, tasks and functions.

For example,

    module m( logic a, b,
              input bit c, d,
                    logic e, f,
                    tri1 g, h,
              output char i, j,
                     integer k, l,
                     reg m, n
             );
    endmodule

Proposal --

-------------------------------------------------------------------

In A.1.4

Add the following nonterminals

      directionless_port_declaration ::=
               port_type list_of_port_identifiers

      directionless_data_port_declaration ::=
               data_type list_of_variable_port_identifiers

Add the following option to list_of_port_declarations

       | '(' {attribute_instance} directionless_port_declaration
             [ ',' port_declaration { ',' port_declaration } ] ')'

---

In A.2.1.2

Replace inout_declaration with

inout_declaration ::= 'inout' list_of_port_identifiers | 'inout' list_of_directionless_port_declarations

Replace input_declaration with

input_declaration ::= 'input' list_of_port_identifiers | 'input' list_of_directionless_port_declarations

Replace output_declaration with

output_declaration ::= 'output' list_of_port_identifiers | 'output' list_of_directionless_port_declarations | 'output' list_of_directionless_data_port_declarations

---

In A.2.3

Add the following nonterminals

list_of_directionless_port_declarations ::= directionless_port_declaration { ',' directionless_port_declaration }

list_of_directionless_data_port_declarations ::= directionless_data_port_declaration { ',' directionless_data_port_declaration }

---

Also, modify Syntax 17-1 and 17-2 to reflect the above changes.

Finally, modify Syntax 10-1 to reflect the change of BC19-19.

---------------------------



This archive was generated by hypermail 2b28 : Wed Feb 26 2003 - 18:41:25 PST