Quantcast
Channel: Cadence Custom IC Design Forum
Viewing all articles
Browse latest Browse all 4891

how to use the random function in schematic?

$
0
0

  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)))
    )
)

Viewing all articles
Browse latest Browse all 4891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>