RE: [sv-bc] enumeration types

From: Maidment, Matthew R <matthew.r.maidment@intel.com>
Date: Fri Dec 10 2004 - 19:29:16 PST

Why is this NOT a scalar?

>-----Original Message-----
>From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On
>Behalf Of Francoise Martinolle
>Sent: Friday, December 10, 2004 6:47 PM
>To: 'Steven Sharp'; sv-bc@eda.org; Brad.Pierce@synopsys.com
>Subject: RE: [sv-bc] enumeration types
>
>
>Yes, this is exactly my question.
>Is:
>typedef enum logic {flase, true} myenum;
>a scalar or a vector 1 bit wide.
>
>-----Original Message-----
>From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On
>Behalf Of Steven
>Sharp
>Sent: Thursday, December 09, 2004 7:12 PM
>To: sv-bc@eda.org; Brad.Pierce@synopsys.com
>Subject: RE: [sv-bc] enumeration types
>
>Yes, the standard clearly states that it is illegal to
>bit-select a scalar.
>
>The question is whether that applies to an enum that was
>declared with an
>underlying base type that is a scalar. In other words, when
>an enum data
>object is used in an expression, is it treated like it is of
>the base type
>of the enum?
>
>Steven Sharp
>sharp@cadence.com
>
>
>
Received on Fri Dec 10 19:29:27 2004

This archive was generated by hypermail 2.1.8 : Fri Dec 10 2004 - 19:29:32 PST