RE: [sv-bc] slices of packed arrays


Subject: RE: [sv-bc] slices of packed arrays
From: David W. Smith (david.smith@synopsys.com)
Date: Wed Mar 19 2003 - 09:45:44 PST


Peter,
Thanks for the clarification. The example is now fixed to have the
declaration of d be 1:5 instead of 5:1.
 
Regards
David

 <http://www.synopsys.com/>

-----Original Message-----
From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Peter
Flake
Sent: Wednesday, March 19, 2003 8:13 AM
To: Karen Pieper
Cc: sv-bc@eda.org
Subject: Re: [sv-bc] slices of packed arrays

Karen,

I think that this is illegal because the slices index upwards and the array
indexes downwards.

Peter.

At 08:42 17/03/2003 -0800, Karen Pieper wrote:

Hi, all,
        
        The SV-EC is asking us if the following is legal. There is an
example in the current standard
we need to be sure is correct.

string d[5:1] = { "a", "b", "c", "d", "e" };
string p[*];
p = { d[1:3], "hello", d[4:5] };

K



This archive was generated by hypermail 2b28 : Wed Mar 19 2003 - 09:45:50 PST