Sunteți pe pagina 1din 4

Why SPICE Is Just As Good And Just As Bad For

IC Design As It Was 40 Years Ago


Laurence W. Nagel Colin C. McAndrew
Omega Enterprises Consulting NXP Semiconductors
251 Stanford Avenue, Kensington, CA 94708 1300 North Alma School Rd, Chandler, AZ 85224
Email: lwn@omega-enterprises.net Email: Colin.McAndrew@nxp.com

Abstract—The modern EDA industry has its roots at UC more accessible and to impart to the students some enthusiasm
Berkeley in the 1970’s, and in particular the spread of SPICE about becoming a circuit designer.
fueled the growth of this industry. Evolving from a teaching In common with all the UC Berkeley simulation programs
tool to a research tool to a production IC design tool, SPICE
is still universally used to teach IC design in academia and to [1]–[3], SPICE provided “built-in” models for semiconductor
do production IC design in industry. Both the capabilities of the devices. Don Pederson, one of the principals in the develop-
simulation algorithms and the accuracy of the compact models in ment of SPICE, used to talk about how SPICE gave students
SPICE have improved dramatically over time. However, designer a breadboard circuit that had “a beta knob on each transistor.”
expectations, to handle larger and more complex circuits and to Built-in models freed the student in analog circuit design
give more accuracte results for more detailed aspects of circuit
behavior, have increased at least as fast. This has meant that, from worrying about details of the device models. This is
at best, SPICE has had to “run just to stay in place.” This still true, but having built-in models is a two-edged sword.
paper looks back at this escalating arms race, and proposes some While the student may not have to worry about the details
future research directions to help SPICE make some headway of compact models, he or she also misses an introduction
and “swim upstream.” into the models and, more important, their limitations. And
Index Terms—SPICE, circuit simulation, analog circuit design,
MOSFET transistor modeling and simulation, bipolar transistor the models presented in design textbooks are not just overly
modeling and simulation. simplistic, they can be incorrect and misleading, especially for
capacitances.
I. I NTRODUCTION SPICE gave excellent insight into the performance of a
circuit for a “nominal” design. It still does. But SPICE could
When SPICE was developed at the University of California, not provide insight into how to modify a “nominal” design
Berkeley, almost fifty years ago, the primary goal was to to improve the performance of a circuit. It still can’t. This is
provide a tool that would give undergraduate and graduate somewhat surprising. The original version of SPICE [4], [5]
students insight into the operation of electronic circuits, par- contained a method for calculating circuit sensitivities using
ticularly of analog electronic circuits. SPICE soon evolved into the adjoint method [6], and this approach has been shown
a research tool as well, it was used in numerous analog design to be extendable to calculating parameter sensitivities for
projects, and became the basis of many graduate projects on transient analyses [7]. However, although the adjoint solution
the development of both circuit simulation algorithms and technique is still widely used for small-signal noise analysis,
semiconductor device (a.k.a. compact) models. it is not exploited in commercial simulators to determine
SPICE continued to evolve as students took SPICE with sensitivities with respect to device geometries, device biases,
them when they graduated and began using the program as and manufacturing variations.
a production tool for the design of integrated circuits. This
led to the need for SPICE to simulate much larger and more III. SPICE A S A R ESEARCH T OOL
complex circuits. SPICE soon evolved from a teaching tool into a research
This paper will address these three roles of SPICE in the tool, and was used in numerous analog design projects. In
integrated circuit industry: as a teaching tool, as a research addition, SPICE led to hundreds of graduate projects on
tool, and as a production IC design tool. We will identify those improved simulation algorithms, on algorithms for new types
areas in integrated circuit design where SPICE has been good of circuit analyses, and on the development of significantly
and those areas where SPICE has been not so good (bad). improved compact models.
SPICE has always produced accurate results for linear RLC
II. SPICE A S A T EACHING T OOL
circuits. With adequate models, SPICE produced reasonable
SPICE originally was developed as a teaching tool to pro- approximations of the performance of circuits containing non-
vide students, both undergraduate and graduate, with insight linear devices such as bipolar transistors and MOS transistors.
into, and understanding of, the operation of electronic circuits, It still does. But SPICE does not provide an estimate of
especially analog circuits. The idea was to make circuit design how accurate the results of complex nonlinear models are

978-1-5386-5401-9/18/$31.00 ©2018 IEEE 170


for a specific simulation. It is possible to use models in on model accuracy and computational efficiency. This has led
an incorrect manner to produce simulation results that are to significant improvements in the basic capabilities of models,
totally meaningless. Scarier still, many novice designers today, that is, in the physics that underlies them, and in how models
weaned on SPICE and not on bench measurements, trust the are implemented in simulators.
simulation results without mentally questioning, or applying But neither algorithms nor models are perfect. That is
design-experience-related sanity checks to, the simulation re- the “just as bad” aspect of the title of this paper. When
sults. This directive is as important as, perhaps more important SPICE was first developed it was the “apex predator” of
than, it was 40 years ago: do not blindly use SPICE simulations both algorithms and models: It rendered hand calculations
to replace physical understanding of how devices and circuits of circuit performance (feasible for simple circuits that com-
should operate. prised several transistors, infeasible for any practical circuit
As SPICE simulation algorithms and model improvements for decades) obsolete, and defined the foundation of circuit
have accumulated over time, and the industry overall has simulation from the early 1970s to today. The algorithms are
matured, there is less research than in the past in both of good, but neither perfect nor complete (for example, cyclo-
these areas. Model developments are still primarily driven by stationary or transient noise simulation), and more importantly
universities, but algorithm developments are often proprietary the accuracy expected from, and assumed of, the models has
to EDA companies. A key roadblock to developing and sharing grown exponentially over time (“I SPICEd it so it must be
algorithms is the need to implement them in low-level C code right”) whereas the capabilities of the models have not kept
specific to one simulator. Significant improvements in imple- up.
mentation efficiency and portability can come from the use of Weak inversion and leakage modeling cannot be done to
high-level, object-oriented code. This approach is spearheaded 1% accuracy, so don’t trust the simulations to that level.
by the Model and Algorithm Prototyping Platform MAPP [8], Capacitances in the most widely used MOS transistor models
which comes the full circle to UC Berkeley. can sort-of-work for fast digital or analog circuits, but not
both at the same time. New device structures can include
IV. SPICE A S A P RODUCTION IC D ESIGN T OOL new phenomena, like the “hump” effect in weak inversion for
SPICE continued to evolve as students from numerous STI MOS transistors [13], that take years, or even decades, to
universities took SPICE with them when they graduated and become included in compact models.
began using the program as a production tool in the design It is impossible to make models perfect (by definition they
of integrated circuits. This progression led to the need to are “models”). So, to blindly trust SPICE simulations, espe-
have SPICE simulate much larger and more complex circuits. cially for “fine structure” features (distortion, which requires
SPICE has progressed to the point where circuit designers can accuracy for high order derivatives, leakage, noise statistics,
load literally millions of lines of netlist in the program and basically anything but the norm—even output conductance in
perform hours and days of simulations to ascertain if their weak inversion or at the boundary between nonsaturation and
circuit works as it is supposed to. saturation, which depends on process variability), is specious.
Enhancing the capabilities of SPICE to handle millions of SPICE produced reasonable estimates of “nominal” perfor-
lines of netlist instead of hundreds of lines of netlist was not mance and was used to produce “worst-case” performance
without bumps in the road. As SPICE became a keystone of estimates using “corner” files. “Corner” files became a stan-
the IC design process, numerous “industrial strength” versions dard feature of most SPICE simulators, but as simulating
of SPICE became commercially available, including HSPICE manufacturing variations became a more critical component
[9], Spectre [10], and SmartSPICE [11]. These “industrial of SPICE simulation, numerous problems with corner files
strength” simulators preserved the SPICE input format and were uncovered [14], [15]. Sadly, SPICE still does not directly
had pretty much the same core simulation capabilities (DC, provide an estimate of the variation of circuit performance with
AC Small-Signal, and Large-Signal Transient Analyses). The manufacturing variations. Monte Carlo like simulations give
improvements in these simulators were to the core algorithms some information, but unless analyzed properly (the sensitivity
of sparse matrix solution, iterative nonlinear solution methods, analysis noted above) do not guide a designer in terms of
and numerical integration methods. Recently, Sandia National optimal layout, bias, or geometry.
Laboratories released the XYCE simulator [12] which features
better core algorithms that yield additional improvements in V. SPICE A LGORITHMS I N T HE F UTURE
simulation efficiency. So how will SPICE evolve in the future? What follows are
One of the core strengths of SPICE was that it placed several areas of simulation capability that are necessary in a
as much importance on models as on algorithms; to quote public domain version of SPICE. Several proprietary versions
from the abstract of [4]: “particular emphasis is placed upon contain one or more of these improvements, but they have not
the circuit models for the BJT and the FET.” In the decades yet been migrated to open source versions.
since SPICE spread throughout the semiconductor industry the
growing complexity of technology and circuits, increasingly A. SPICE will remain an Open Source tool
stringent IC performance specifications, and an industry-wide SPICE has lasted as long as it has in part because it is
push to reduce IC design cycle time have all focused attention an open source tool, versions of which are available free of

171
charge to all takers. An open source SPICE is a far better to implement RF CMOS circuits and the wireless explosion
educational tool because the student can always take the tool began. RF circuit simulation required an entirely new line
apart to see how it works and how it can be improved. An of algorithms. Unfortunately, each commercial simulator had
open source SPICE is a far better research tool because it can different algorithms that worked on some RF circuits but
be modified to fit the needs of a new technology, even if it is not others. The user interface and netlist description varied
not profitable for an EDA vendor to make the modification. from program to program. With the exception of QUCS [17],
For SPICE to continue to be successful, it must continue to none of the programs were Open Source. Because of the lack
be an open source tool. of open source RF simulation tools, RF simulators are only
slowly working their way into educational institutions.
B. SPICE will take advantage of new hardware (Multicores,
GPU’s, Cloud Computing, even Smart Phones) E. SPICE will include Variational Analysis
The clock speed of processors stopped increasing with Variational analysis in the past has been added to SPICE
advancing technology nodes years ago. Instead, as design rules almost as an afterthought. It has been assumed that variations
continue to decrease, more cores and more ancillary hardware in circuit components have been small, so that variational
such as Graphics Processing Units (GPUs) have become avail- analysis would be treated as a small-signal perturbation. For
able. Cloud computing is making ever-less-expensive CPU the last forty years, worst case corner analysis has been used
cycles available to all. Even smart phones now come with instead of variational analysis.
two cores and a GPU, and are capable of running SPICE! As an educational tool, students now need to learn vari-
To take advantage of this trend in technology, SPICE ational analysis from the very start. Variational analysis no
algorithms need to exploit the “obvious parallelism” in circuit longer can be treated as an afterthought! New technologies
simulation. This includes model evaluation using GPUs, as have to be specified with random variations, and SPICE
well as exploiting the “obvious latency” in large circuits (this needs to have Variational Analysis integrated into its basic
has been done for regular circuits such as memories, but not for framework.
general circuits). Large systems need multiple copies of SPICE
F. SPICE will include Thermal Analysis
simulating different portions of the circuit simultaneously. This
is an important application of parallel computing that requires Devices are being placed closer and closer to each other,
effective inter-process communication. and devices are being placed on “substrates” that are not
One new development in parallel circuit simulation is the good thermal conductors. MOSFET models already include
XYCE simulator [12] that was developed at Sandia National thermal effects, but only “self” heating is included. Thermal
Laboratories with the express goal of exploiting parallel pro- coupling between devices is or will be significant in analog
cessing hardware. XYCE has been in development for fourteen IC design, and coupled electrothermal analysis will become
years and has been released as an Open Source program. more important as time goes on.
Another recent development in circuit simulation is the use VI. SPICE M ODELS I N T HE F UTURE
of special-purpose hardware such as GPUs. These chips orig-
inally were designed for accelerating graphics for computer Besides core “simulation” improvements, areas where the
games, but are really specialized processing units tailored to compact models in SPICE warrant development include:
single-instruction multiple-data (SIMD) applications, such as • “self-identification” of where model accuracy becomes

evaluating many copies of a device model with different data suspect, so designers know when and where to question
(i.e. with different biases and parameters) [16]. It would be simulation results
interesting if GPUs could be leveraged to speed up other • modeling of the effects of, and sensitivities to, layout

aspects of simulation. • efficient modeling of both fast digital transients and


analog behavior
C. SPICE will accept Verilog-A as input • development of “design centric” models and pro-active

In addition to being able to accept device models coded in use of models for design (define required matching, fT ,
Verilog-A, it would be highly desirable to have SPICE accept gm , etc. to automatically select W , L, VGS , etc., rather
netlists that are compatible with Verilog-A. This compatibility just calculate the former from the latter)
will aid compact model development by allowing the full • “built-in” modeling of variability

power of the Verilog-A language. Verilog-A compatibility also • techniques and tools to automatically detect unphysical

will allow noncritical portions of the circuit to be described behavior, or numerical problems, in models
at the behavioral level. Partitioning the circuit into behavioral It is pretty clear that the replacement for CMOS has not
(functional) blocks will aid parallelization. yet been invented. Many “new” device models will have
to be added to SPICE to try out new technology ideas in
D. SPICE will include RF Analysis the quest for a new technology. The ADMS program [18],
By the end of the 1980’s, at around the 1µm technology originally developed by Laurent Lemaitre at Motorola, is an
node, CMOS transistor fT ’s had extended well into the GHz open source tool that was designed to compile SPICE models
region. As MOS transistors became faster, it became possible coded in a subset of Verilog-A into the C language routines

172
required by most versions of SPICE. However, some newer This is not a problem for expert IC designers. It is a huge
device models, such as BSIMCMG and BSIM6, have been problem, recognized in both industry and academia, for the
coded in a subset of Verilog-A that is not compatible with “SPICE jockeys” who blindly run, and trust, SPICE simulation
ADMS, and ADMS has not been supported for many years. An results. There is no substitute for knowledge of how circuits
open source Verilog-A compiler, that is compatible with open operate and physical understanding of how devices behave.
source simulators and supports extended Verilog-A constructs,
ACKNOWLEDGMENT
is sorely needed. MAPP [8] may fill this void, but if it does
not an alternative must be developed. The authors wish to acknowledge the members of the
ESSCIRC/ESSDERC 2018 Technical Program Committee for
VII. C ONCLUSIONS their encouragement and invitation to present this paper.
SPICE revolutionized IC design, by supplanting breadboard-
R EFERENCES
ing and bench measurements. But the imperfections of 40
[1] W. J. McCalla and W. G. Howard, “BIAS-3–a program for the nonlinear
years ago remain. The core analysis algorithms from way back d.c. analysis of bipolar transistor circuits,” IEEE J. Solid-State Circuits,
then have remained the keystones of simulation today, and vol. 6, pp. 14–19, Feb. 1971. DOI: 10.1109/JSSC.1971.1050153.
have been improved. They have been augmented (e.g., har- [2] T. E. Idleman, F. S. Jenkins, W. J. McCalla, and D. O. Pederson, “SLIC–
a simulator for linear integrated circuits,” IEEE J. Solid-State Circuits,
monic balance, phase noise), but not supplanted. The models vol. 6, pp. 188–203, Aug. 1971. DOI: 10.1109/JSSC.1971.1050168.
are vastly more accurate than they were 40 years ago. But they [3] L. W. Nagel and R. A. Rohrer, “CANCER: computer analysis of
are still imperfect, in several aspects embarrassingly so for nonlinear circuits excluding radiation,” IEEE J. Solid-State Circuits,
vol. 6, pp. 166–182, Aug. 1973. DOI: 10.1109/JSSC.1971.1050166.
model developers. With the increasing importance of layout [4] L. W. Nagel and D. O. Pederson, “Simulation program with integrated
dependence effects (LDEs) and parasitics, and the inability circuit emphasis (SPICE),” in 16th Midwest Symp. Circuit Theory, 1973.
of models to keep up with the cadence of technology devel- [5] L. W. Nagel, SPICE2, A Computer Program to Simulate Semiconductor
Circuits. PhD thesis, EECS Department, University of California,
opment in these areas, there will always be “unsimulatable” Berkeley, May 1975.
effects. So, these are the main reasons why although SPICE, [6] S. W. Director and R. A. Rohrer, “The generalized adjoint network and
and SPICE models, have significantly improved since it was network sensitivities,” IEEE Trans.Circuit Theory, vol. 16, pp. 318–323,
Aug. 1969. DOI: 10.1109/TCT.1969.1082965.
first released it is still as “bad” as it was back then. [7] B. Gu, K. Gullapalli, Y. Zhang, and S. Sundawaresan, “Faster statistical
The expectations of how accurate SPICE models and sim- cell characterization using adjoint sensitivity analysis,” in Proc. IEEE
ulations are has continued to escalate, yet the gaps between CICC, pp. 229–232, 2008. 10.1109/CICC.2008.4672065.
[8] T. Wang, A. V. Karthik, B. Wu, J. Yao, and J. Roychowdhury, “MAPP:
SPICE and reality, especially for the device models, has never the Berkeley model and algorithm prototyping platform,” in Proc. IEEE
been closed as more physical effects come into play and CICC, 2015. 10.1109/CICC.2015.7338431.
accuracy requirements have become more demanding. The [9] HSPICE. https://www.synopsys.com/verification/ams-verification/
circuit-simulation/hspice.html. Accessed: May. 2018.
Shichman-Hodges MOS transistor model was revolutionary 50 [10] Spectre. https://www.cadence.com/content/cadence-www/global/
years ago, but is completely inadequate for todays needs. As en US/home/tools/custom-ic-analog-rf-design/circuit-simulation/
technology continues to scale, what “fine details” of modeling spectre-circuit-simulator.html. Accessed: May. 2018.
[11] SmartSpice. https://www.silvaco.com/products/analog mixed signal/
bubble up to be make-or-break capabilities continue to evolve. smartspice.html. Accessed: May. 2018.
This is a continuous learning/need curve, and is exactly why [12] Xyce. https://xyce.sandia.gov/. Accessed: May. 2018.
todays SPICE is just as good, and just as bad, as it was 40 [13] S. Khandelwal, H. Agarwal, J. P. Duarte, K. Chan, S. Dey, Y. S.
Chauhan, and C. Hu, “Modeling STI edge parasitic current for accurate
years ago. circuit simulations,” IEEE Tran. Computer-aided Design of Integrated
The basic capabilities and requirements are similar: predict Circuits and Systems, vol. 34, pp. 1291–1294, Aug. 2015. DOI:
circuit performance reasonably well. But the expectations 10.1109/TCAD.2015.2419626.
[14] J. Krick, “Statistical transistor SPICE modeling in advanced
today are much, much more stringent than they were 40 years CMOS technologies,” in Compact Modeling of Variability Workshop,
ago. Circuits have 108 more components, supply voltages are IEEE/ACM ICCAD, 2008.
much smaller so sensitivity to variability is much greater, [15] C. C. McAndrew, I.-S. Lim, B. Braswell, and D. Garrity, “Cor-
ner models: inaccurate at best, and it only gets worst ,” in
sensitivity to inaccuracies in models is vastly higher, and many Proc. Custom Integrated Circuits Conf., pp. 219–224, 2013. DOI:
more circuit performances are important. The capabilities of 10.1109/CICC.2013.6658428.
SPICE, and SPICE models, have improved astronomically [16] R. E. Poore, “GPU-accelerated time-domain circuit simulation,” in Proc.
IEEE CICC, pp. 629–632, 2009. 10.1109/CICC.2009.5280743.
since SPICE was released. But the complexity of the circuits [17] M. Brinson and V. Kuznetsov, “Qucs equation-defined and Verilog-A
it simulates, and the expectations of the accuracy of those RF device models for harmonic balance circuit simulation,” in Proc.
simulation results, has increased at a greater rate. So basically, MIXDES, pp. 192–197, 2015. 10.1109/MIXDES.2015.7208509.
[18] L. Lemaitre, C. C. McAndrew, and S. Hamm, “ADMS-automated device
the algorithms and models in SPICE are continually playing model synthesizer,” in Proc. IEEE CICC, pp. 27–30, 2002. DOI:
catch-up. 10.1109/CICC.2002.1012760.
The expectation from simulations for IC design these days
is perfection: just run a bunch of SPICE simulations and you
are done.
The reality is that SPICE algorithms and models have,
despite huge steps forward, struggled to keep pace with the
increasing expectations of how accurate they should be.

173

S-ar putea să vă placă și