[sv-bc] enumeration types

From: Francoise Martinolle <fm@cadence.com>
Date: Thu Dec 09 2004 - 13:49:36 PST

I think that the following is legal:
typedef enum bit {bit0, bit1} mybit;
 
But can I use a bit select of a variable of that type when the base type of
the enum is just bit or logic or alias
thereof?
 
mybit v;
 
initial v[0] = 1'b0;
 
 
I think that if I define:
typedef enum bit[0:0] {bit0, bit1} mybitvec;
 
v[0] is legal.
 
Francoise
       '
Received on Thu Dec 9 13:49:38 2004

This archive was generated by hypermail 2.1.8 : Thu Dec 09 2004 - 13:49:46 PST