RE: [sv-ec] LRM Changes 249 & 265


Subject: RE: [sv-ec] LRM Changes 249 & 265
From: David W. Smith (dwsmith@synopsys.com)
Date: Fri Feb 20 2004 - 12:31:37 PST


Hi Stefen,

Please check the latest change for Section 4.6.1 that is on the SV web site. I believe we found, and fixed, all of the references to
the unused variable.

 

Regards

David

 

-----Original Message-----
From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of Stefen Boyd
Sent: Friday, February 20, 2004 11:08 AM
To: sv-ec@eda.org; Brad Pierce
Subject: [sv-ec] LRM Changes 249 & 265

 

Brad,

  Seems that your changes for package scope resolution have
rippled into section 4.6.1:

"dynamic_array_new ::= // from Annex A.2.4
new [ expression ] [ ( dynamic_array_variable_identifier expression ) ]"

It would seem that this means that we can now do more than
just the array variable identifier. If the only thing we
can now do is pkg_name::array_identifier, perhaps that should
be noted. Or can we now do a slice of an array, etc. (I don't
think so)?

Also, the paragraph following the new syntax becomes very confusing
since we no longer have "dynamic_array_variable_identifier" in the
bnf:

"Optional. The name of an array with which to initialize the new array. If src_array it is not specified, the elements of
array_name the newly allocated array are initialized to their default value. src_array This array identifier must be a dynamic array
of the same data type as array_name the array on the left-hand side, but it need not have the same size. If the size of src_array
dynamic_array_variable_identifier is less than size the value of the expression, the extra elements of array_name shall be
initialized to their default value. If the size of src_array dynamic_array_variable_identifier is greater than size the value of the
expression, the additional elements of src_array shall be ignored.

This argument is useful when growing or shrinking an existing array. In this situation, src_array dynamic_array_variable_identifier
is array_name the same as the left-hand side, so the previous values of the array elements are preserved. For example:
"

At places here we refer to expression, but now we have two expressions,
so we need to differentiate the size expression from the name expression.
Also, we refer to the identifier, but that's no longer in the bnf.

Can you help clarify the intent? I could guess and make some changes...

Stefen

--------------------
Stefen Boyd Boyd Technology, Inc.
stefen@BoydTechInc.com (360)666-6957
www.BoydTechInc.com <http://www.boydtechinc.com/>



This archive was generated by hypermail 2b28 : Fri Feb 20 2004 - 12:39:31 PST