task/function port lists and internal block item declarations

From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Fri Dec 20 2002 - 13:44:41 PST

  • Next message: etf@boyd.com: "errata/119: PROPOSAL - 2.6.3, Table 1: Octal escape sequences"

    Precedence: bulk

    If a task port is declared in a task_port_list, is it legal
    to also declare it in a block item declaration within the body
    of the task?

    In 12.3.4, in the context of lists of module port declarations,
    the LRM says --

      "Each declared port provides the complete information about
       the port. The port s direction, width, net, or variable type,
       and whether the port is signed or unsigned is completely
       described."

    so it should be an illegal redeclaration of such a port to declare
    it again in a block item declaration. (Is that a correct interpretation?)

    Does that also apply to lists of function ports and task ports?

    If so, where is that stated in the standard? If not, what is
    the motivation for the difference?

    Thanks,

    -- Brad



    This archive was generated by hypermail 2.1.4 : Fri Dec 20 2002 - 13:48:41 PST and
    sponsored by Boyd Technology, Inc.