Program gives asymmetrical Spice tolerance

Jan. 12, 1998
Spice is unable to accommodate asymmetric tolerances for worstcase analysis. However, the DISTRIBUTION statement available in Monte Carlo analysis can accommodate asymmetric tolerances by creating histogram bins. Asymmetric tolerances can easily occur...

Spice is unable to accommodate asymmetric tolerances for worstcase analysis. However, the DISTRIBUTION statement available in Monte Carlo analysis can accommodate asymmetric tolerances by creating histogram bins. Asymmetric tolerances can easily occur for any component with temperature drift in unbalanced temperature environments. They also can occur in some capacitors.

The QBasic program shown will create 20 bins of Gaussian distribution with symmetric or asymmetric tolerances (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).

Sponsored Recommendations

TTI Transportation Resource Center

April 8, 2024
From sensors to vehicle electrification, from design to production, on-board and off-board a TTI Transportation Specialist will help you keep moving into the future. TTI has been...

Cornell Dubilier: Push EV Charging to Higher Productivity and Lower Recharge Times

April 8, 2024
Optimized for high efficiency power inverter/converter level 3 EV charging systems, CDE capacitors offer high capacitance values, low inductance (< 5 nH), high ripple current ...

TTI Hybrid & Electric Vehicles Line Card

April 8, 2024
Components for Infrastructure, Connectivity and On-board Systems TTI stocks the premier electrical components that hybrid and electric vehicle manufacturers and suppliers need...

Bourns: Automotive-Grade Components for the Rough Road Ahead

April 8, 2024
The electronics needed for transportation today is getting increasingly more demanding and sophisticated, requiring not only high quality components but those that interface well...

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!