# PSPICE SYNTAX & COMMAND SUMMARY

### .MC - Monte Carlo (Statistical) Analysis

General Format :
.MC |# runs| [DC,AC, or TRAN] |output variable| YMAX
+ {LIST} {OUTPUT |output specification}
The .MC tells PSpice to run a Monte Carlo or statistical
analysis on the circuit looking at the |output variable|
response based on variation of other parameters. The
variable parameters are those parameters in the model
which contain DEV and LOT tolerances (see .MODEL for more).
The first run is done with nominal values of parameters.
The |# runs| tells PSpice how many runs it should do.
Only one of the DC, AC, or TRAN statements can be specified.
|output variable| tells PSpice to save the statistical
information on the given variable. YMAX specifies the
operation to be performed on the values of |output variable|
to reduce these to a single value. This value is the basis
for the comparisons between the nominal and subsequent runs.
LIST tells PSpice to print out the model parameter values at
the beginning of each run.
The output from the initial run is controlled by the .PRINT,
.PLOT, or .PROBE commands in the netlist. For the other runs
the output is suppressed unless the OUTPUT keyword is present.
Then the |output specification| tells what output is wanted.
The |output specification| can be :
ALL forces all output to be generated
FIRST |value| gives output for the first |value| runs
EVERY |value| gives output every |value| run
RUNS |value ...| gives output for the runs listed in |value ...|
Examples :
.MC 10 TRAN V(5) YMAX
tells PSpice to run 10 statistical transient runs saving
V(5) values.
.MC 50 DC IC(Q7) YMAX LIST
tells PSpice to run 50 statistical DC runs saving IC(Q7) values
and listing the parameters for each run.
.MC 20 AC VP(13,5) YMAX LIST OUTPUT ALL
tells PSpice to run 20 statistical AC runs saving VP(13,5)
values, listing the parameters for each run, and outputting
the results for each run.

**COMPONENTS**

B C
D E
F G
H I
J K
L M
Q R
S T
V W
X Sources

**COMMANDS**

* ;
+ .AC
.DC .END
.ENDS .FOUR
.IC .INC
.LIB .MC
.MODEL .NODESET
.NOISE

.OP
.OPTIONS .PLOT
.PRINT .PROBE
.SENS .SUBCKT
.TEMP .TF
.TRAN .WIDTH