errata/345: 10.2.1, 10.3.1, 12.3.3, 12.3.4 -- ANSI-style port lists and redeclaration

From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Fri May 09 2003 - 18:58:55 PDT

  • Next message: Steven Sharp: "Re: errata/344: Case Statements with Real Expressions"

    Precedence: bulk

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

    According to 12.3.4, regarding ANSI-style module ports, "Each declared
    port provides the complete information about the port." According to
    12.3.3, if a port declaration does not include a net or variable type,
    then the port can be again declared in a net or variable declaration."

    Does this mean that the following is legal? --

         module m( input x ) ;
         wire x ;
         endmodule

    I think it shouldn't be. If the information is complete, then even
    redundant declarations should be prohibited.

    Are there any restrictions on redeclarations of ANSI-style
    task/function ports? I don't see any restrictions in 10.2.1 and
    10.3.1. To me it would make sense if each ANSI-style task/function
    declaration would provide the complete information about the port
    and if it would be illegal to redeclare such ports within the body,
    even redundantly.

    -- Brad



    This archive was generated by hypermail 2.1.4 : Fri May 09 2003 - 19:01:06 PDT and
    sponsored by Boyd Technology, Inc.