[sv-bc] typo in section 3.15


Subject: [sv-bc] typo in section 3.15
From: Jacobi, Dan (dan.jacobi@intel.com)
Date: Mon Mar 10 2003 - 01:29:18 PST


The Example in Section 3.15 at the end of page 23 (System-Verilog 3.1 draft
3) reads:
enum Colors { red, green, blue, yellow, white, black };
Colors col;
$cast( col, 2 + 3 );
This was added as part as the EC enhancements

It looks like the first line in the example should read :
typedef enum { red, green, blue, yellow, white, black } Colors;
As in other examples under 3.11.4

This also corresponds to the BNF that reads
singular_type ::=
integer_vector_type [ signing ] { packed_dimension } [ range ]
| integer_atom_type [ signing ] { packed_dimension }
| type_declaration_identifier { packed_dimension }
| non_integer_type
| struct [ packed ] [ signing ] { { struct_union_member } } {
packed_dimension }
| union [ packed ] [ signing ] { { struct_union_member } } {
packed_dimension }
| enum [ integer_type [ signing ] { packed_dimension } ]
{ enum_identifier [ = constant_expression ] { , enum_identifier [ =
constant_expression ] } }
| string
Editor?s Note: Singular is listed as anything but unpacked structs, unpacked
arrays, and handle type. Either the
text should simply let the singular_type bnf explain or should deal with
other exceptions: union, void, dynamic
arrays
BC55
BC19-17a/
BC62b

Dan Jacobi
Phone : (972)-4-8655855



This archive was generated by hypermail 2b28 : Mon Mar 10 2003 - 01:30:13 PST