RE: Minutes of the Verilog-AMS call - 27 March 2008

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon Mar 31 2008 - 01:00:18 PDT
Hi,

Regarding the following:
 
>    - (section 4.2.13, page 59): Confusion between array 
> literal and concatenation (examples seem to refer to array 
> literals rather than concat tho' both use the same operator).
...
>      * Leave the last example with replication as is in that section. 
> There should be a apostrophe - `2`{a,b} in that example.

Draft 3 does not mention array literals or assignment patterns at all.
If you want them, you have to describe them in an orderly way.

(By the way, all apopstrophes in code should be straight up-down simple
not-smart apostrophes.)

The mentioned example (again, an example of an array literal or
assignment pattern, not a concatenation as the text wrongly says) says,

'{c, '{2{a, b}}} // equivalent to: '{c, a, b, a, b}

Assuming you want to be compatible with IEEE Std 1800, this is not
correct.

'{c, '{2{a, b}}} is equivalent to: '{c, '{a, b, a, b}}

If you added an apostrophe in the place shown in the minutes, then you
would get:

'{c, '{2'{a, b}}} is equivalent to: '{c, '{a, b}, '{a, b}}

If the original comment following the code is intended, then you need to
delete the apostrophe before "2":

'{c, {2{a, b}}} is equivalent to: '{c, a, b, a, b}

1800 is very difficult to understand about how the apostrophes and curly
brackets work in array literals and assignment patterns. Mantis 943 is
open on that, but it will not be fixed in the next revision of 1800
unless it is flagged by a ballot voter.

Regards,
Shalom
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Mar 31 01:01:38 2008

This archive was generated by hypermail 2.1.8 : Mon Mar 31 2008 - 01:01:50 PDT