Subject: RE: Indexing of array parameters
From: Martin O'Leary (oleary@cadence.com)
Date: Mon Jun 03 2002 - 15:49:09 PDT
Sri,
I don't think the LRM disallows this.
It seems like a very useful feature to have.
Thanks,
--Martin
> -----Original Message-----
> From: Srikanth Chandrasekaran [mailto:schandra@asc.corp.mot.com]
> Sent: Saturday, May 25, 2002 2:17 AM
> To: Verilog-AMS Committee
> Subject: Indexing of array parameters
>
>
> Hi all,
>
> Can an array parameter be indexed by a dynamic expression?
>
> integer j;
> parameter real P[0:2] = {0,1,2};
>
> x = P[j];
>
> Paramaters are supposed to be constants expression, constant
> for a particular
> simulation run. However, if it can be indexed using dynamic
> expressions, as
> specified in the above example, the value of P[j] cannot be
> solved before
> simulation begins.
>
> Should the indexing for parameter arrays be only constant expressions.
>
> cheers,
> Sri
> --
> Srikanth Chandrasekaran
> Global Software Group, EDA SBU
> Motorola Australia.
> Phone: +61-8-8168 3592 Fax: x3501
>
This archive was generated by hypermail 2b28 : Mon Jun 03 2002 - 15:50:25 PDT