Electronic Design

  
Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?


[Ideas For Design]
Program gives asymmetrical Spice tolerance

Contributing Author  |   ED Online ID #6336  |   January 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 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).


Reprints   Printer-Friendly  Email this Article  RSS    Font Size   What's This?


  • Network-On-Chip Tools Arrive for The Masses
  • Tackling System Design Challenges Through Early Verification
  • ESL Tools Take Center Stage As Designers Move Up
  • Parasitic Extraction Tool Targets Next-Generation Custom ICs
  • Synopsys Jumps Into ESL-Synthesis Pool
  • Verify Control Systems Before Committing To Hardware
  • You're Using How Many FPGAs?
  • Tool Up For The FPGA Blitz
    1) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (188 views today)
    2) Hot Hands For Some Cool Rock: Motion Sensing Meets Audio Engineering
    (173 views today)
    3) GPS-Derived Grandmaster Clock Delivers Ultra-Precise Time And Frequency Sync
    (91 views today)
    4) What's All This Transimpedance Amplifier Stuff, Anyhow? (Part 1)
    (82 views today)
    5) Science Fiction Meets Science Fact In Today's Robot Research
    (81 views today)
    ALL TOP 20



    POST YOUR COMMENTS HERE
    Name:

    Email:
    Your Comments:

    Enter the text from the image below


    Please refresh the page if you have trouble reading this text.

    Search Electronic Design
         
      
     
    Email Newsletter
    Sponsored By:
    Electronic Design UPDATE provides readers with late-breaking news, opinions from industry experts, and timely technology stories. It's a unique opportunity to get your product message in front of engineers, engineering managers, and corporate managers while they're reading about critical information online.

    Enter Email to Subscribe
      

    Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF
    Mobile Dev & Design Schematics Find Power Products Military Electronics EE Events Related Resources