RE: [sv-bc] enumeration types

From: Francoise Martinolle <fm@cadence.com>
Date: Fri Dec 10 2004 - 18:47:06 PST

 
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:18:38 2004

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