Hi
The following function abRandomNormal had been defined in ciw and it works. However, when give
abRandomNormal() as a value to resistor in analogLib, in the simulation, it reports the following errors.
Error found by spectre during hierarchy flattening.
ERROR (SFE-1997): "input.scs" 21: Cannot run the simulation because V0: parameter `dc': Function `abRandomNormal' is not defined. Update the netlist to define the function.
, correct the expression and rerun the simulation.
How to use the pre-defined function as a variable to the analogLib devices?
Thanks
defMathConstants('abRandomNormal) defun(abRandomNormal nil let((max((-1 >> 1)) U V) (U = (float(random(max)) / max)) (V = (float(random(max)) / max)) (sqrt((-2 * log(U))) * cos((2 * (abRandomNormal.PI) * V))) ) )