Is there any semantic restriction on the data type which can be passed as an argument to $bits? It looks to me like this argument can be syntactically a data_type, so is this legal" typedef bit [ $bits(enum { x }) : 0] mytype; Where is the enumeration constant declared? In the scope containing the declaration of "mytype"? So is it legal to reference x outside the typedef? mytype v; initial v = mytype'(x); and is the following illegal? typedef bit [ $bits(enum { x }) : 0] mytype1; typedef bit [ $bits(enum { x }) : 0] mytype2; // duplicate symbol xReceived on Fri Jan 13 09:52:19 2006
This archive was generated by hypermail 2.1.8 : Fri Jan 13 2006 - 09:54:19 PST