Indexing of array parameters


Subject: Indexing of array parameters
From: Srikanth Chandrasekaran (schandra@asc.corp.mot.com)
Date: Sat May 25 2002 - 02:17:12 PDT


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 : Sat May 25 2002 - 02:18:21 PDT