For concatenations and strings, look at multiple_concatenation.
However, in 1800-2009,
multiple_concatenation ::= { expression concatenation }30
whereas in V-AMS,
multiple_concatenation ::= { constant_expression concatenation }
Footnote 30 in 1800-2009 says,
"30) In a multiple_concatenation, it shall be illegal for the multiplier not to be a constant_expression unless the type of
the concatenation is string."
For array literals, you have in 1800-2009
assignment_pattern ::=
'{ expression { , expression } }
| '{ structure_pattern_key : expression { , structure_pattern_key : expression } }
| '{ array_pattern_key : expression { , array_pattern_key : expression } }
| '{ constant_expression { expression { , expression } } }
I did not see replication in V-AMS, neither in syntax nor in examples.
Regards,
Shalom
> -----Original Message-----
> From: owner-verilog-ams@eda.org [mailto:owner-verilog-ams@eda.org] On
> Behalf Of Geoffrey.Coram
> Sent: Thursday, July 29, 2010 7:40 PM
> To: VerilogAMS Reflector
> Subject: replication missing from BNF?
>
> I can't seem to find replication mentioned in the formal
> BNF syntax (Annex A) of the Verilog-AMS LRM (2.3 nor 2.3.1).
>
> Yet, replication shows up in 3.3 String data type
> and there are several examples in 4.2.13 Concatenations.
> IEEE 1800 has replication also in array literals
> (see 5.11 of 1800-2009.pdf).
>
> -Geoffrey
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
---------------------------------------------------------------------
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 Thu Jul 29 09:59:39 2010
This archive was generated by hypermail 2.1.8 : Thu Jul 29 2010 - 09:59:41 PDT