Re: [sv-bc] New errata for enumeration type bnf definition


Subject: Re: [sv-bc] New errata for enumeration type bnf definition
From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Fri Jan 16 2004 - 14:39:12 PST


Francoise,

I think the = in your example is not correct syntax.
Also, according to the second paragraph of 3.10,

   "In the absence of a data type declaration, the
    default data type shall be 'int'. Any other
    data type used with enumerated types shall
    require an explicit data type declaration."

So I think the BNF is correct for this issue.

-- Brad

-----Original Message-----
From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org]On Behalf Of
Francoise Martinolle
Sent: Friday, January 16, 2004 11:40 AM
To: sv-bc@eda.org
Subject: [sv-bc] New errata for enumeration type bnf definition

I believe that the BNF is not correct and does not support the following
legal enumeration type:

enum [3:0] = {a, b, c, b};

The bnf seems to require to have the bit or logic qualifier before the
range.

Francoise
        '



This archive was generated by hypermail 2b28 : Fri Jan 16 2004 - 14:46:00 PST