RE: BNF question

From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Thu Oct 10 2002 - 09:21:25 PDT

  • Next message: Michael McNamara: "RE: Fwd: BNF question"

    Precedence: bulk

    Stuart,

    The list_of_port_declarations example given in 12.3.4
    of the standard is --

         module test ( input [7:0] a,
                       input signed b,
                       c,
                       d,
                       output [7:0] e,
                       output reg signed [7:0] f,
                       g,
                       output signed [7:0] h ) ;
         body endmodule

    This syntax would be much clearer as

         module test ( input [7:0] a;
                       input signed b, c, d;
                       output [7:0] e;
                       output reg signed [7:0] f, g;
                       output signed [7:0] h; ) ;
         body endmodule

    That is, it would have been nicer if the port declarations
    of A.2.1.2 were terminated with semicolons. Likewise in A.2.3.

    This is the nice way that the local_parameter_declaration
    and specparam_declaration are defined in A.2.1.1.
    It is also the nice way that the parameter_declaration used to
    be defined until they were modified in #1, producing the same
    kind of problems for module_parameter_port_list.

    -- Brad



    This archive was generated by hypermail 2.1.4 : Thu Oct 10 2002 - 09:24:32 PDT and
    sponsored by Boyd Technology, Inc.