How to define a user defined function in AEL

Z

Zhiheng Cao

Guest
Dear Cadence,

According to the manual, in AEL (Analog Expression Language)
there can be user defined functions. I read through the
AEL documentation but couldn't find any information on how to
define one.

I just want to define a function that returns a random number
before everytime the simulation runs. Could anybody give me an
example or pointer?

Thanks,

Cao
 
On Thu, 16 Feb 2006 16:24:41 -0600, "Zhiheng Cao" <cao@ece.utexas.edu> wrote:

Dear Cadence,

According to the manual, in AEL (Analog Expression Language)
there can be user defined functions. I read through the
AEL documentation but couldn't find any information on how to
define one.

I just want to define a function that returns a random number
before everytime the simulation runs. Could anybody give me an
example or pointer?

Thanks,

Cao
Hi Cao,

We really should remove that from the documentation. This can only be done at
the C level, and there is no way of linking in C code with DFII.

It's really a hangover from some internal documentation, I believe. I'll file a
PCR to get the docs fixed.

You can use Verilog-A to generate random numbers - that would be a better
solution. If you're trying to do this as a means of doing monte carlo (given
your other posting), you might want to read my reply to that post.

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top