Re: [sv-bc] Question about replication in array literal


Subject: Re: [sv-bc] Question about replication in array literal
From: Dave Rich (David.Rich@synopsys.com)
Date: Wed Jan 14 2004 - 08:32:10 PST


No, that was my mistake.

{2{{3{a,{4{b,c}}}}}}

The inner braces of the replication are removed

Paul Graham wrote:

>Dave,
>
>In your example:
>
>
>
>>{2{3{a,{4{b,c}}}}} becomes
>>
>>
>
>you have illegal syntax. Given that:
>
> concatenation ::= '{' expression { , expression } '}'
> multi_concatenation ::= '{' expression concatenation '}'
>
>you can't have an expression begining with {2{3{ ... Are you planning
>to change the syntax to be something like this:
>
> multi_concatenation ::= '{' expression '{' expression '}' '}'
>
>or
>
> concatenation ::= '{' expression { , expression } '}'
> | multi_concatenation
> multi_concatenation ::= '{' expression concatenation '}'
>
>Paul
>
>
>
>

-- 
--
David.Rich@Synopsys.com
Technical Marketing Consultant
http://www.SystemVerilog.org
tele:  650-584-4026
cell:  510-589-2625



This archive was generated by hypermail 2b28 : Wed Jan 14 2004 - 08:33:44 PST