ArticleslgStudy

computer science

SPICE

SPICE is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand SPICE rather than just read about it. In short: SPICE (Simulation Program with Integrated Circuit Emphasis) is a general-purpose, open-source analog electronic circuit simulator. It is a program used in integrated circuit and board-level design to check the integrity of circuit designs and to predict circuit behavior.

Key takeaways

  • SPICE belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect SPICE to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of SPICE from memory before moving on to harder problems.

Reference excerpt

SPICE (Simulation Program with Integrated Circuit Emphasis) is a general-purpose, open-source analog electronic circuit simulator. It is a program used in integrated circuit and board-level design to check the integrity of circuit designs and to predict circuit behavior.

Introduction Unlike board-level designs composed of discrete parts, it is not practical to breadboard integrated circuits before manufacture. Further, the high costs of photolithographic masks and other manufacturing prerequisites make it essential to design the circuit to be as close to perfect as possible before the integrated circuit is first built. Simulating the circuit with SPICE is the industry-standard way to verify circuit operation at the transistor level before committing to manufacturing an integrated circuit. The SPICE simulators help to predict the behavior of the IC under different operating conditions, such as different voltage and current levels, temperature variations, and noise. Board-level circuit designs can often be breadboarded for testing. Even with a breadboard, some circuit properties may not be accurate compared to the final printed wiring board, such as parasitic resistances and capacitances, whose effects can often be estimated more accurately using simulation. Also, designers may want more information about the circuit than is available from a single mock-up. For instance, circuit performance is affected by component manufacturing tolerances. In these cases, it is common to use SPICE to perform Monte Carlo simulations of the effect of component variations on performance, a task which is impractical using calculations by hand for a circuit of any appreciable complexity. Circuit simulation programs, of which SPICE and derivatives are the most prominent, take a text netlist describing the circuit elements (transistors, resistors, capacitors, etc.) and their connections, and translate this description into equations to be solved. The general equations produced are nonlinear differential algebraic equations, which are solved using implicit integration methods, Newton's method and sparse matrix techniques.

Origins SPICE was developed at the Electronics Research Laboratory of the University of California, Berkeley by Laurence W. Nagel with direction from his research advisor, Prof. Donald Pederson. SPICE1 is largely a derivative of the CANCER program, which Nagel had worked on under Prof. Ronald A. Rohrer. CANCER is an acronym for "Computer Analysis of Nonlinear Circuits, Excluding Radiation". At these times many circuit simulators were developed under contracts with the United States Department of Defense that needed the ability to evaluate the radiation hardness of a circuit. When Nagel's original advisor, Prof. Rohrer, left Berkeley, Prof. Pederson became his advisor. Pederson insisted that CANCER, a proprietary program, be rewritten enough that restrictions could be removed and the program could be put in the public domain. SPICE1 was first presented at a conference in 1973. SPICE1 is coded in FORTRAN IV and ran on University of California, Berkeley's CDC 6400. To construct the circuit equations, it uses nodal analysis, which has limitations in representing inductors, floating voltage sources and the various forms of controlled sources. SPICE1 has relatively few circuit elements available and uses a fixed-timestep transient analysis. The real popularity of SPICE started with SPICE2 in 1975. SPICE2, also coded in FORTRAN, is a much-improved program with more circuit elements, variable timestep transient analysis using either the trapezoidal (second order Adams-Moulton method) or the Gear integration method (also known as BDF), equation formulation via modified nodal analysis (avoiding the limitations of nodal analysis), and an innovative FORTRAN-based memory allocation system. Ellis Cohen led development from version 2B to the industry standard SPICE 2G6, the last FORTRAN version, released in 1983. SPICE3 was developed by Thomas Quarles (with A. Richard Newton as advisor) in 1989. It is written in C, uses the same netlist syntax, and adds X Window System plotting. As an early public domain software program with source code available, SPICE was widely distributed and used. Its ubiquity became such that "to SPICE a circuit" remains synonymous with circuit simulation. SPICE source code was from the beginning distributed by UC Berkeley for a nominal charge (to cover the cost of magnetic tape). The license originally included distribution restrictions for countries not considered friendly to the US, but the source code is currently covered by the BSD license. The birth of SPICE was named an IEEE Milestone in 2011; the entry mentions that SPICE "evolved to become the worldwide standard integrated circuit simulator". Nagel was awarded the 2019 IEEE Donald O. Pederson Award in Solid-State Circuits for the development of SPICE.

Successors

Open-source successors No newer versions of Berkeley SPICE have been released after version 3f5 in 1993. Since then, the open-source or academic continuations of SPICE include:

XSPICE, developed at Georgia Tech, which added mixed analog/digital "code models" for behavioral simulation; CIDER (previously CODECS), developed by UC Berkeley and Oregon State University, which added semiconductor device simulation; Ngspice, based on SPICE 3f5; WRspice, a C++ re-write of the original spice3f5 code. SPICE OPUS Not a descendant but compatible:

QUCS, which uses an independently-developed Qucsator backend but understands SPICE input. The QUCS-S variant supports using a SPICE-derived backend. Xyce, independent but compatible work from Sandia National Laboratories. Parallel (MPI) C++ for high performance and large netlists.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with SPICE

Start with the simplest possible case. Write down what SPICE claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to SPICE before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about SPICE ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of SPICE

In research
SPICE appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses SPICE in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
SPICE is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1973 software, Electronic circuit simulators, Electronic design automation software, so understanding it makes those chapters shorter.
In everyday life
Look for SPICE outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “SPICE” →

How to study SPICE in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what SPICE means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain SPICE out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is SPICE in simple terms?

SPICE (Simulation Program with Integrated Circuit Emphasis) is a general-purpose, open-source analog electronic circuit simulator. It is a program used in integrated circuit and board-level design to check the integrity of circuit designs and to predict circuit behavior.

Why does SPICE matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study SPICE?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on SPICE.

Tags

  • 1973 software
  • Electronic circuit simulators
  • Electronic design automation software
  • Electronic design automation software for Linux
  • Free simulation software
  • Free software programmed in C
  • Free software programmed in Fortran
  • Public-domain software with source code
  • Simulation programming languages
  • Software using the BSD license

Keep exploring