RE: [sv-ec] Queue delete() method

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Thu Aug 03 2006 - 12:31:15 PDT
There are several SV-EC Mantis issues open on this.
I had proposed unifying them all under one issue, but never got any
feedback about my proposal.

See http://www.eda-stds.org/sv-ec/hm/3359.html .

Shalom


> -----Original Message-----
> From: owner-sv-ec@server.eda-stds.org [mailto:owner-sv-ec@server.eda-
> stds.org] On Behalf Of Steven Sharp
> Sent: Thursday, August 03, 2006 10:13 PM
> To: sv-ec@server.eda-stds.org; adrian@trustic.ro
> Subject: RE: [sv-ec] Queue delete() method
> 
> 
> >From: "Adrian Coman" <adrian@trustic.ro>
> 
> >So, in the end, which version is correct: q = '{} or q = {} ? I saw
one
> simulator
> >supporting q = {} and another one q = '{} ...
> 
> In IEEE Std 1800-2005, it is definitely correct to use q = '{}.  That
> is correct syntax for an aggregate literal with a type taken from the
> left-hand-side of an assignment (an "assignment pattern").
> 
> There is some disagreement about whether it would also be correct
> to use q = {}.  That would be syntax for a special queue concatenation
> operation, whose existence is strongly implied but not properly
defined
> in the LRM.  Even if the examples were accepted as a specification,
> they wouldn't fully define the rules for the operation.  They could
> also be interpreted as examples that were not updated for the change
> in assignment pattern syntax, and with some other errors.
> 
> In the older Accellera SystemVerilog 3.1a standard, array and struct
> literals used {} instead of '{}.  This was changed because of
potential
> problems created by ambiguity with concatenations.  Some simulators
> may still not be updated to the IEEE standard.
> 
> Steven Sharp
> sharp@cadence.com
Received on Thu Aug 3 12:31:40 2006

This archive was generated by hypermail 2.1.8 : Thu Aug 03 2006 - 12:31:44 PDT