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, 0}, {-pole_1,0,-pole_2,0})<<--? ;" "/home/samiran/my_lib/test/veriloga/veriloga.va", line 60: Argument #3 must be an array variable or a constant array expression. It cannot be an array expression containing non- constant expressions. If you need the argument to be variable, use an array variable instead. Please help! BR Samiran
Samiran wrote, on 09/21/10 13:01: Samiran, 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. Regards, Andrew.