Hi,
I have a question about the meaning of a sentence in the LRM.
19.5.6 says while discussing coverpoint bins:
Let e be the coverpoint expression and b be an expression in a bins open_range_list.
...
Enumeration values in expressions b and e shall first be treated as being in an expression context.
This implies that the type of an enumeration value is the base type of the enumeration and not the enumeration type itself.
My question is, what is the last sentence trying to say?
My guess is that, since for example, the following is legal (from 6.19),
// Correct declaration - bronze and gold are unsized
enum bit [3:0] {bronze='h3, silver, gold='h5} medal2;
then "bronze", for example, is treated as 4'h3 and not as 'h3.
However, in the sentence quoted above from 19.5.6,
"This implies that the type of an enumeration value is the base type of the enumeration and not the enumeration type itself."
the phrase "enumeration type" at the end of the sentence is not clear.
Thanks,
Shalom
Shalom Bresticker
Intel LAD DA, Jerusalem, Israel
+972 2 589 6582 (office)
+972 54 721 1033 (cell)
http://www.linkedin.com/in/shalombresticker
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Nov 29 05:55:36 2011
This archive was generated by hypermail 2.1.8 : Tue Nov 29 2011 - 05:55:49 PST