errata/133: PROPOSAL - Table 12: Precedence rules for operators

From: Shalom.Bresticker@motorola.com
Date: Sun Jan 05 2003 - 02:01:17 PST

  • Next message: Shalom Bresticker: "partial solutions"

    Precedence: bulk

    ************************************************************
    Added by Shalom 2002-01-05:

    Need to add binary concatenation operator " , ".

    Suppose I have { a , b ? c1 : c2 }.
    Then it is treated as { a, (b ? c1 : c2) }.

    Also probably need to add "event or" operator from 4.1.15.
    That "or" can also be a comma, by the way.
    ************************************************************

    Modified by Shalom:

    Change subclause name
    FROM: "Binary operator precedence"
    TO : "Operator precedence".

    Change the first paragraph
    FROM:
    "The precedence order of binary operators and the
    conditional operator (?:) is shown in Table 12.
    The Verilog HDL has two equality operators.
    They are discussed in 4.1.8."

    TO:
    "The precedence order of the Verilog operators
    is shown in Table 12."

    Change Table 12 as follows:

    Change top row
    FROM: "+ - ! ~ (unary)"
    TO : "Unary + - ! ~ & ~& | ~| ^ ~^ ^~"

    Change rows 8-10
    FROM:
    & ~&
    ^ ^~ ~^
    | ~|

    TO:
    & (binary)
    ^ ^~ ~^ (binary)
    | (binary)

    In last row (conditional operator), delete "Lowest precedence".

    Add new row at bottom: "{} {{}} Lowest precedence".

    Stu Sutherland thinks concatenation is highest priority.
    Shalom: This may sound funny, but does it make a difference?

    http://boydtechinc.com/cgi-bin/issueproposal.pl?cmd=view&pr=133



    This archive was generated by hypermail 2.1.4 : Sun Jan 05 2003 - 02:02:02 PST and
    sponsored by Boyd Technology, Inc.