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 Tue May 30 18:51:51 2006
This archive was generated by hypermail 2.1.8 : Tue May 30 2006 - 18:52:05 PDT