Professional Documents
Culture Documents
Program Gives Asymmetrical Spice Tolerance
Program Gives Asymmetrical Spice Tolerance
(Listing 1). The program will print out the .DISTRIBUTION statement with bins for easy import to a
Spice net list. The example problem is a component with 10% and +2% tolerances. The asymmetry
is somewhat extreme, but it clearly illustrates the use of the program.
The program assumes 500 samples to ensure a reasonably accurate Gaussian curve. The output of the
program is given (Listing 2).
The program assumes the component is a resistor. For a capacitor, change the .MODEL statement as
follows:
.MODEL CA CAP (C=1 DEV/ASYM=10%)
and correspondingly for an inductor. The output text file is placed in the root directory C:\ with the
name qbout.txt.
A histogram for this example is shown (see the figure).