[sv-bc] Is this a valid syntax

From: Kausik Datta <kausikd_at_.....>
Date: Thu Jun 30 2005 - 23:38:19 PDT
Hi,

The following syntax is passed by standard simulators, but most probably LRM
doesn't support this.
Can you please let me know whether I am missing anything here.

Thanks
Kausik

typedef enum [1:0] {NONE, SHARED, EXCLUSIVE, MODIFIED} myenum;

After "enum" can I write a packed dimension without any type identifier?

The syntax rules which are related to this declaration are:

type_declaration ::= typedef data_type type_identifier variable_dimension ;
data_type ::=
| enum [ enum_base_type ] { enum_name_declaration { , enum_name_declaration
} }
enum_base_type ::=
integer_atom_type [ signing ]
| integer_vector_type [ signing ] [ packed_dimension ]
| type_identifier [ packed_dimension ]24
enum_name_declaration ::= enum_identifier [ [ integral_number [ :
integral_number ] ] ] [ = constant_expression ]



 



Received on Thu Jun 30 23:38:36 2005

This archive was generated by hypermail 2.1.8 : Thu Jun 30 2005 - 23:38:43 PDT