Requires: SmartSpice & Smartview
Minimum Versions: SMARTSPICE 3.16.12.R
SmartSpice uses a Variation block to calculate resistance values within the given specified Monte-Carlo device distribution.
The
input deck is a SPICE file containing variation block definition and Monte-Carlo distribution for a simple set of resistors.
To run the simulation, Source the deck and press the green run button. When the simulation completes, the
results
are shown in SmartSpice log Window.
This shows the output variations (10) of the resistance “ra” values
plot
in Smartview where you see the changes.
Graphics


Input Files
simple_Res_variation.in
* Monte-Carlo with Variation block
.options nomod nodeck
ra1 3 1 1k
rb1 3 2 1k
ra2 1 0 rpoly l=10u w=1u
rb2 2 0 rpoly l=10u w=1u
v1 3 0 DC 5
.model rpoly r rsh=100 tc1=0.01
.tran 0.1 2 monte=10
.print @ra2[rsh] @ra2[tc1] @rb2[rsh] @rb2[tc1]
.save v(1,2)
.variation
.global_variation
parameter random1=N()
R rpoly rsh=perturb('random1/3')
.end_global_variation
*
.local_variation
R rpoly tc1 ='25 + 1/3'
.end_local_variation
.end_variation