Requires: SmartSpice & Smartview
Minimum Versions: SMARTSPICE 3.17.26.C
This example
input deck shows new .DCOP syntax: .dcop monte=val prmc <donotprintop>
Statement:
.OP MONTE=3 prmc donotprintop
In this case, SMARTSPICE will perform a DC OP analysis with Monte Carlo steps = 3.
Output:
MONTE CARLO STEP #1
Parameter modification:
parameter2 = 2.89493 [agauss(2, 2, 2, 1)]
@r2[res] = 2.89493 (2.89493)
parameter1 = 0.2633 [agauss(1, 1, 1, 1)]
@r1[res] = 0.2633 (0.2633)
DC Operating Point Analysis, 27 deg C,Mon Aug 02 16:06:34 2010
v2_max = 7.9158e-001 at= 1.0000e+000
v3_max = 2.5674e-001 at= 1.0000e+000
MONTE CARLO STEP #2
Parameter modification:
parameter2 = 1.29912 [agauss(2, 2, 2, 1)]
@r2[res] = 1.29912 (1.29912)
parameter1 = 2.66426 [agauss(1, 1, 1, 1)]
@r1[res] = 2.66426 (2.66426)
DC Operating Point Analysis, 27 deg C,Mon Aug 02 16:06:34 2010
v2_max = 2.7291e-001 at= 2.0000e+000
v3_max = 4.3495e-001 at= 2.0000e+000
MONTE CARLO STEP #3
Parameter modification:
parameter2 = 4.30655 [agauss(2, 2, 2, 1)]
@r2[res] = 4.30655 (4.30655)
parameter1 = 1.8587 [agauss(1, 1, 1, 1)]
@r1[res] = 1.8587 (1.8587)
DC Operating Point Analysis, 27 deg C,Mon Aug 02 16:06:34 2010
v2_max = 3.4981e-001 at= 3.0000e+000
v3_max = 1.8845e-001 at= 3.0000e+000
DC Operating Point Analysis, 27 deg C
Mon Aug 02 16:06:34 2010
———————————————————
Index monte_carlo v(2) v(3)
———————————————————
0 1.0000e+000 7.9158e-001 2.5674e-001
1 2.0000e+000 2.7291e-001 4.3495e-001
2 3.0000e+000 3.4981e-001 1.8845e-001
DC Operating Point Analysis, 27 deg C
Mon Aug 02 16:06:34 2010
———————————————————
Index monte_carlo @r1[res] @r2[res]
———————————————————
0 1.0000e+000 2.6330e-001 2.8949e+000
1 2.0000e+000 2.6643e+000 1.2991e+000
2 3.0000e+000 1.8587e+000 4.3065e+000
Monte Carlo Step = 1 ======== RESULT ===========
DCOP: v2_max ( max ) = 0.791578
DCOP: v3_max ( max ) = 0.256744
Monte Carlo Step = 2 ======== RESULT ===========
DCOP: v2_max ( max ) = 0.272906
DCOP: v3_max ( max ) = 0.434949
Monte Carlo Step = 3 ======== RESULT ===========
DCOP: v2_max ( max ) = 0.34981
DCOP: v3_max ( max ) = 0.188447
Monte Carlo (Steps = 3) : statistical descriptors
====================================================
——————————————
Name of measurement: v2_max
Type of measurement: max
Type of analysis : DCOP
Mean: 0.471431
Variance: 0.0783489
Sigma: 0.279909
Average Deviation: 0.213431
Maximum: 0.791578
Minimum: 0.272906
——————————————
——————————————
Name of measurement: v3_max
Type of measurement: max
Type of analysis : DCOP
Mean: 0.29338
Variance: 0.0161975
Sigma: 0.127269
Average Deviation: 0.0943795
Maximum: 0.434949
Minimum: 0.188447
——————————————
Input Files
OpMonte.in
* Check new .DCOP syntax: .dcop monte=val prmc
.PARAM Parameter1 = 'AGAUSS(1,1,1)'
.PARAM Parameter2 = 'AGAUSS(2,2,2)'
V1 1 0 1
R1 1 2 'Parameter1'
R1load 2 GND 1
R2 1 3 'Parameter2'
R2load 3 GND 1
.option nomod nodeck
.option post=2
.OP MONTE=3 prmc donotprintop
.print op v(2) v(3) @R1[res] @R2[res]
.measure op v2_max max v(2)
.measure op v3_max max v(3)
.end