Re: [sv-ec] RE: [sv-bc] Issues on Queue Operators

From: Neil Korpusik <Neil.Korpusik_at_.....>
Date: Wed May 31 2006 - 13:21:55 PDT
<bounced email from Greg Jaxon>

-------- Original Message --------
Date: Tue, 30 May 2006 18:52:13 -0700
From: Greg Jaxon <Greg.Jaxon@synopsys.com>
To: Steven Sharp <sharp@cadence.com>
Cc: sv-ec@server.eda.org, sv-bc@server.eda.org, jonathan.bromley@doulos.com
Subject: Re: [sv-ec] RE: [sv-bc] Issues on Queue Operators


Steven Sharp wrote:
>> From: "Jonathan Bromley" <jonathan.bromley@doulos.com>
>> I'm tempted to use inside-out curly brackets for
>> [array-explosion syntax], on the grounds
>> that it's almost exactly the inverse of concatenation...
>>
>> // append one int to a queue of ints
>>
>> Q = '{ }Q{ , 7 };
>>
>> but it's so ugly that I give up and leave it to someone
>> else to invent the right syntax.
> 
> I don't know if there are any characters left unused in Verilog :-)
> And you want something concise.

We're not using the empty list position for anything.  I'd find
the following notation suggestive of the process of unraveling the
queue or dynamic array and interpolating its elements into the
surrounding list.

     Q = '{ ,Q, 7 };  // append at end or
     Q = '{ 7,, Q };  // append at beginning

At present the empty position should be an error.  The extension
makes it mean: following list item is actually a vectorful of
list items.  '{ 7,,,A } would probably unravel a two dimensional
array A and append a 7 at the beginning.

Greg Jaxon

Disclaimer:  Ideas in this post are hypothetical; any resemblance
to product features living or dead, is unintentional.


> 
> 
> Steven Sharp
> sharp@cadence.com
> 
Received on Wed May 31 13:21:31 2006

This archive was generated by hypermail 2.1.8 : Wed May 31 2006 - 13:21:40 PDT