How to define a user defined function in AEL

Discussion in 'Cadence' started by Zhiheng Cao, Feb 16, 2006.

  1. Zhiheng Cao

    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
     
    Zhiheng Cao, Feb 16, 2006
    #1
  2. 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.
     
    Andrew Beckett, Feb 17, 2006
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.