Specifying a Monte Carlo Run

Monte Carlo runs are invoked in the same way as multi-step analyses (see General Sweep Specification). The basic syntax is:

.analysis_name analysis_parameters SWEEP MONTE num_runs NUMCORES=num_cores

Where:

.analysis_name Dot statement for analysis. Either .TRAN, .AC, .DC, .NOISE, .TF
analysis_parameters Specific parameters for that analysis
num_runs Number of runs
num_cores Specify the number of processor cores to use.

Examples

Run 10 Monte Carlo runs for 1mS transient analysis

.TRAN 1m SWEEP MONTE 10

Run 1000 Monte Carlo steps for 1mS transient analysis using 4 processor cores. This will split the 1000 steps into 4 cores with each running 250 steps

.TRAN 1m SWEEP MONTE 1000 NUMCORES=4

100 Runs of a DC Sweep

.DC V1 0 5 0.01 SWEEP MONTE 100

AC sweep of voltage source V5 from -300mV to 300mV. Repeat 50 times

.AC DEVICE=V5 LIN 100 -300m 300m F=100000 SWEEP MONTE 50