errata/226: PROPOSAL - Illegal to assign mintypmax expression to parameter?

From: Brad.Pierce@synopsys.com
Date: Sun Sep 14 2003 - 17:01:36 PDT

  • Next message: Brad.Pierce@synopsys.com: "errata/317: PROPOSAL - 3.10: max array size not clear enough"

    Precedence: bulk

    APPEND the following line to the examples at the end
    of 3.11.1

    parameter p = (1:2:3); //parenthesis required since constant_mintypmax_expression is not allowed

    Answer to original question: The behavior is correct as described. Section 3.11.3 describes the difference between parameters and specify parameters and it states that a specify parameter is a special type of parameter intended only for providing timing and delay values. Specparams allow the use of mintypmax_expression but parameter declarations do not. Table 8 in section 3.11.3 is clearly stating that parameters may not be assigned specparams, so it is OK that they are declared differently.
    Parameters may be assigned constant_expressions, which include constant_primary and constant_primary, which includes (constant_mintypmax_expression), hence example m_legal is OK but m_illegal is not.

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



    This archive was generated by hypermail 2.1.4 : Sun Sep 14 2003 - 17:04:06 PDT and
    sponsored by Boyd Technology, Inc.