Introduction to Analog Circuit Simulation
In 1972, the Electrical Engineering Department of the University of California at Berkeley released the first version of SPICE (Simulation Program with Integrated Circuit Emphasis). The head of the department, Donald Pederson, decided to do this free of charge. After many additions, revisions, and improvements (done by a “cast of thousands” of graduate students), it’s still free today.
The Berkeley SPICE program was originally written in Fortran. It has been modified and sold by dozens of companies under various names. Some of the modifications, such as adaptation to PC use, were useful. Many others merely served to make these programs incompatible with each other.
So, be aware that there are differences in capabilities and notation between SPICE programs. Also, it’s no longer true1 that analysis programs running on more expensive workstations under Unix are better or faster; some PC programs (notably Simetrix) have outdistanced their Unix cousins in both speed and added features.
Analog vs Digital Simulation
Simulation for analog ICs differs greatly from any kind of digital simulation. The most important factor in digital simulation is speed, which has led to an ever finer representation of internal capacitances and other stray effects in the simulation models.
In an analog IC, speed is just one of many requirements. We rely heavily on matching and need to know, with great certainty, the effect of variations in many parameters in an almost unlimited number of combinations. Each device also needs to be represented accurately over the entire operating range, not just in two states. The models are therefore the most important factor.
Unfortunately, the quality of models for analog or mixed-mode ICs varies greatly. Some—few—are very accurate and can provide you with a high level of confidence in the results. Using these models, you can tell from simulations alone how well your design will work in silicon, down to the exact distribution of each circuit parameter in production. However, most models issued by foundries aren’t in this category; instead, they lack information crucial to analog design.
The second half of this chapter includes a fairly detailed discussion of device models for SPICE. Going through it is a somewhat tedious task, but it is necessary to judge the quality of the models available to you. Read that part lightly and then use it for later reference.
What Can You Simulate With SPICE?
A good analog simulator can tell you all you need to know about a design. But be aware that simulators that fall into the “average” category lack several of the most desirable features.
In SPICE, there are three basic simulation types:
- DC.
- AC.
- Transient.
We’ll investigate these three circuit analysis methods in the following pages.
1 As of when “Designing Analog Chips” was first published in 2005.