Verilog-A issue

Discussion in 'Cadence' started by Samiran, Sep 21, 2010.

  1. Samiran

    Samiran Guest

    Dear all,

    I am getting an error while compiling the following piece of code:

    V(vout) <+ laplace_zp(gain*vin_val, {zero,0}, {-pole_1,0,-pole_2,0});

    The error is:

    Error found by spectre during AHDL compile.
    ERROR (VACOMP-1166): "V(vout) <+ laplace_zp(gain*vin_val, {zero,
    {-pole_1,0,-pole_2,0})<<--? ;"
    line 60: Argument #3 must be an array variable or a constant
    expression. It cannot be an array expression containing non-
    expressions. If you need the argument to be variable, use an
    variable instead.

    Please help!

    Samiran, Sep 21, 2010
    1. Advertisements

  2. Samiran wrote, on 09/21/10 13:01:

    You have to do what it says. Create an array variable and populate that with the
    coefficients you want, and then pass the array to the laplace_zp function.

    If you want to see an example, look in rfLib, in BB_chebyshev_lp_laplace
    veriloga view.


    Andrew Beckett, Sep 26, 2010
    1. Advertisements

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.