Constant initialization question

From: Muranyi, Arpad <arpad.muranyi_at_.....>
Date: Mon Nov 14 2005 - 09:01:01 PST
Hello everyone,

I would like to ask a question about initializing
constants.

I am getting compiler errors when I write something
like this:

parameter real Min_t = min(min(min(Tr1[1], Tr2[1]), Tf1[1]), Tf2[1]);

Where Tr1, Tr2, Tf1, Tf2 are array parameters, i.e.
constants.  The error complains that the initialization
is not static.  I have other similar statements in which
I use ceil, arithmetic, etc..., but all with constant
arguments.

In my opinion, the result of all these math functions
should be constants, since the arguments are also all
constant.  Is this allowed according to the LRM?  Is
this a compiler bug?

Thanks,

Arpad
============================================================
Received on Mon Nov 14 09:01:16 2005

This archive was generated by hypermail 2.1.8 : Mon Nov 14 2005 - 09:02:22 PST