[sv-bc] RE: [sv-ec] typo in section 3.15


Subject: [sv-bc] RE: [sv-ec] typo in section 3.15
From: David W. Smith (david.smith@synopsys.com)
Date: Mon Mar 10 2003 - 08:44:58 PST


Thanks Dan,
This is fixed in CH-111 on the SV-EC web site. Clearly a left over of somen
previously supported shorthand notation.

Regards
David

-----Original Message-----
From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of Jacobi,
Dan
Sent: Monday, March 10, 2003 1:29 AM
To: sv-ec@eda.org
Cc: sv-bc@eda.org
Subject: [sv-ec] typo in section 3.15

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 - 08:45:49 PST