[sv-bc] enum values


Subject: [sv-bc] enum values
From: Steven Sharp (sharp@cadence.com)
Date: Fri Aug 29 2003 - 14:05:21 PDT


Note that if the values of enum constants can be set from constant
expressions, there are some interesting issues. They can be set from
parameter values, and parameters of type enum can be set from enum
constants, so enum constants must participate in the parameter propagation
during elaboration.

The values of enum constants may not be known until after this point in
elaboration. And since the width of an enum type may be implicitly set
to the width of the enum constants, this may also need to wait. Do users
really need this complexity?

BTW, what are the scoping rules for the identifiers used as enum constants?
Is it legal to make a hierarchical reference to an enum constant name used
in a type definition in another scope?

Steven Sharp
sharp@cadence.com



This archive was generated by hypermail 2b28 : Fri Aug 29 2003 - 14:07:02 PDT