errata/233: 12.3.4, nonport declarations for identifiers mentioned in list_of_port_declarations

From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Wed Dec 25 2002 - 18:41:49 PST

  • Next message: Brad Pierce: "errata/234: 12.3.{2,3,6}, named port connections for implicit ports with same name"

    Precedence: bulk

    >Number: 233
    >Category: errata
    >Originator: "Brad Pierce" <Brad.Pierce@synopsys.com>
    >Environment:
    >Description:

    In 12.3.4, about the new ANSI-like list of port declarations
    style, the example notes that

       "It is illegal to redeclare any ports of the module
        in the body of the module"

    It's clear from the BNF, that port declarations may
    not be included in the body of the module. But what about
    nonport declarations, such as reg declarations, for
    identifiers already mentioned in the list of port declarations?

    Which, if any, of the following examples are legal?

      module m1( input in, output reg signed out );
      wire in;
      reg signed out;
      ...

      module m2( input in, output out );
      wire in;
      reg signed out;
      ...

      module m3( input in, output out );
      reg [15:0] out ;
      ...

    According 12.3.4, "Each declared port provides the complete
    information about the port."

    -- Brad



    This archive was generated by hypermail 2.1.4 : Wed Dec 25 2002 - 18:51:07 PST and
    sponsored by Boyd Technology, Inc.