- SPICE
**SPICE**(Simulation Program with Integrated Circuit Emphasis) is a general purpose analog electronic circuit simulator.It is a powerful program that is used in IC and board-level design to check the integrity ofcircuit design s and to predict circuit behavior.**Introduction**Integrated circuits, unlike board-level designs composed of discrete parts, are impossible to

breadboard 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.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. These parasitic components can often be estimated more accurately using SPICE 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.

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 nonlineardifferential algebraic equation s which are solved using implicit integration methods,Newton's method andsparse matrix techniques.**Origins**SPICE was developed at the Electronics Research Laboratory of the

University of California, Berkeley byLarry Nagel with direction from his research advisor, Prof.Donald Pederson . SPICE1 was largely a derivative of the CANCER program, [*cite journal |author=Nagel, L. W., and Rohrer, R. A. |title= Computer Analysis of Nonlinear Circuits, Excluding Radiation |journal=IEEE Journal of Solid State Circuits |volume=SC-6 |month=Aug |year=1971 |pages= 166–182 |url=http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1050166 |doi= 10.1109/JSSC.1971.1050166*] which Nagel had worked on under Prof. Ronald Rohrer. CANCER was an acronym for "Computer Analysis of Nonlinear Circuits, Excluding Radiation," a hint to Berkeley's liberalism of 1960s: at these times many circuit simulators were developed under theUnited States Department of Defense contracts that required the capability to evaluate theradiation 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. [*cite journal |author=Perry, T. |title=Donald O. Pederson |journal=IEEE Spectrum |month=June |year=1998 |pages=22–27 |url=http://ieeexplore.ieee.org/search/wrapper.jsp?arnumber=681968 |doi=10.1109/6.681968 |volume=35*]SPICE1 was first presented at a conference in 1973. [

*Nagel, L. W, and Pederson, D. O., "SPICE (Simulation Program with Integrated Circuit Emphasis)", Memorandum No. ERL-M382, University of California, Berkeley, Apr. 1973*] SPICE1 was coded inFORTRAN and usednodal analysis to construct the circuit equations. Nodal analysis has limitations in representing inductors, floating voltage sources and the various forms of controlled sources. SPICE1 had relatively few circuit elements available and used a fixed-timesteptransient analysis . The real popularity of SPICE started with SPICE2Nagel, Laurence W., "SPICE2: A Computer Program to Simulate Semiconductor Circuits", Memorandum No. ERL-M520, University of California, Berkeley, May 1975] in 1975. SPICE2, also coded in FORTRAN, was a much-improved program with more circuit elements, variable timestep transient analysis using either trapezoidal or the Gear integration method (also known as BDF), equation formulation via modified nodal analysis [*cite conference |author=Ho, Ruehli, and Brennan |title=The Modified Nodal Approach to Network Analysis |booktitle=Proc. 1974 Int. Symposium on Circuits and Systems, San Francisco |month=Apr |year=1974 |pages=505–509 |url=http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1084079*] (avoiding the limitations of nodal analysis), and an innovative FORTRAN-based memory allocation system developed by another graduate student, Ellis Cohen. The last FORTRAN version of SPICE was 2G.6 in1983 . SPICE3 [*Quarles, Thomas L., "Analysis of Performance and Convergence Issues for Circuit Simulation", Memorandum No. UCB/ERL M89/42, University of California, Berkeley, Apr. 1989.*] was developed by Thomas Quarles (withA. Richard Newton as advisor) in 1989. It is written in C, uses the same netlist syntax, and addedX Window plotting.As an early

open source program, SPICE was widely distributed and used. Its ubiquity became such that "to SPICE a circuit" remains synonymous with circuit simulation. [*cite news |last=Pescovitz |first=David |url=http://www.coe.berkeley.edu/labnotes/0502/history.html |title=1972: The release of SPICE, still the industry standard tool for integrated circuit design |publisher=Lab Notes: Research from the Berkeley College of Engineering |date=2002-05-02 |accessdate=2007-03-10*] 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 USA, but the source code is currently covered by theBSD license .SPICE inspired and served as a basis for many other circuit simulation programs, in academia, in industry, and in commercial products. The first commercial version of SPICE was ISPICE [

*Vladimirescu, Andrei, "SPICE -- The Third Decade", Proc. 1990 IEEE Bipolar Circuits and Technology Meeting, Minneapolis, Sept. 1990, pp. 96–101*] , an interactive version on a timeshare service,National CSS . The most prominent commercial versions of SPICE include HSPICE (now owned bySynopsys ) andPSPICE (now owned byCadence Design Systems ). The academic spinoffs of SPICE include XSPICE, developed at Georgia Tech, which added mixed analog/digital "code models" for behavioral simulation, and Cider (previously CODECS, from UC Berkeley/Oregon State Univ.) which added semiconductor device simulation. The integrated circuit industry adopted SPICE quickly, and until commercial versions became well developed many IC design houses had proprietary versions of SPICE. [*K. S. Kundert, "The Designer’s Guide to SPICE and SPECTRE", Kluwer. Academic Publishers, Boston , 1998*] Today a few IC manufacturers, typically the larger companies, have groups continuing to develop SPICE-based circuit simulation programs. Among these are ADICE atAnalog Devices , LTspice atLinear Technology , Mica atFreescale Semiconductor , and TISPICE atTexas Instruments . (Other companies maintain internal circuit simulators which are not directly based upon SPICE, among them PowerSpice atIBM , Titan atQimonda , Linx atIntel Corporation , and Pstar atNXP Semiconductor .)**Program features and structure**SPICE became popular because it contained the analyses and models needed to design integrated circuits of the time, and was robust enough and fast enough to be practical to use.Nagel, L., [

*http://www.cs.sandia.gov/nacdm/talks/Nagal_Larry_NACDM2004.pdf Is it Time for SPICE4?*] , 2004 Numerical Aspects of Device and Circuit Modeling Workshop, June 23-25, 2004, Santa Fe, New Mexico. Retrieved on 2007-11-10] Precursors to SPICE often had a single purpose: The BIAS [*cite journal |author=McCalla and Howard |title=BIAS-3 – A program for nonlinear D.C. analysis of bipolar transistor circuits |journal=IEEE J. of Solid State Circuits |volume=6 |number=1 |month=Feb |year=1971 |pages=14–19 |url=http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1050153 |doi=10.1109/JSSC.1971.1050153*] program, for example, did simulation of bipolar transistor circuit operating points; the SLIC [*cite journal |author=Idleman, Jenkins, McCalla and Pederson |title=SLIC—a simulator for linear integrated circuits| journal=IEEE J. of Solid State Circuits |volume=6 |number=4 |month=Aug |year=1971 |pages=188–203 |url=http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1050168 |doi=10.1109/JSSC.1971.1050168*] program did only small-signal analyses. SPICE combined operating point solutions, transient analysis, and various small-signal analyses with the circuit elements and device models needed to successfully simulate many circuits.**Analyses**SPICE2 included these analyses:

* AC analysis (small-signal frequency domain analysis at the quiescent point (Q-point ))

* DC analysis (nonlinear quiescent point calculation)

* DC transfer curve analysis (a sequence of nonlinear operating points calculated while sweeping an input voltage or current, or a circuit parameter)

* Noise analysis (a small signal analysis done using an adjoint matrix technique which sums uncorrelated noise currents at a chosen output point)

*Transfer function analysis (a small-signal input/output gain and impedance calculation)

* Transient analysis (time-domain large-signal solution of nonlinear differential algebraic equations)SPICE2 also contained code for

sensitivity analysis ,pole-zero analysis , andsmall-signal distortion analysis . Analysis at various temperatures was done by automatically updating semiconductor model parameters for temperature, allowing the circuit to be simulated at temperature extremes.Other circuit simulators have since added many analyses beyond those in SPICE2 to address changing industry requirements. Parametric sweeps were added to analyze circuit performance with changing manufacturing tolerances or operating conditions. Loop gain and stability calculations were added for analog circuits. Harmonic balance or time-domain steady state analyses were added for RF and switched-capacitor circuit design. However, a public-domain circuit simulator containing the modern analyses and features needed to become a successor in popularity to SPICE has not yet emerged.second reference]

**Device models**SPICE2 included many semiconductor device compact models: three levels of MOSFET model, a combined Ebers–Moll and Gummel-Poon bipolar model, a

JFET model, and a model for a junction diode. In addition, it had many other elements: resistors, capacitors, inductors (including coupling), independent voltage andcurrent source s, idealtransmission line s, and voltage and current controlled sources.SPICE3 added more sophisticated MOSFET models, which were required due to advances in semiconductor technology.In particular, the

BSIM family of models were added, which were also developed at UC Berkeley.Commercial and industrial SPICE simulators have added many other device models as technology advanced and earlier models became inaccurate. To attempt standardization of these models so that a set of model parameters may be used in different simulators, an industry working group was formed, the

Compact Model Council [*cite web |url=http://www.geia.org/index.asp?bid=597 |title=CMC - Compact Model Council | publisher=GEIA*] , to choose, maintain and promote the use of [*http://www.geia.org/index.asp?bid=1333 standard models*] . The standard models today include [*http://www-device.eecs.berkeley.edu/~bsim3 BSIM3*] , [*http://www-device.eecs.berkeley.edu/~bsim3/bsim4.html BSIM4*] , [*http://www-device.eecs.berkeley.edu/~bsimsoi BSIMSOI*] , [*http://pspmodel.asu.edu/ PSP*] , [*http://www.iee.et.tu-dresden.de/iee/eb/hic_new/hic_start.html HICUM*] , and [*http://hitec.ewi.tudelft.nl/mug/home.html MEXTRAM*] .**Input and output: Netlists, schematic capture and plotting**SPICE2 took a text

netlist as input and produced line-printer listings as output, which fit with the computing environment in 1975. These listings were either columns of numbers corresponding to calculated outputs (typically voltages or currents), or line-printer character "plots". SPICE3 retained the netlist for circuit description, but allowed analyses to be controlled from a command-line interface similar to theC shell . SPICE3 also added basicX-Window plotting, asUNIX and engineering workstations became common.Vendors and various free software projects have added

schematic capture front-ends to SPICE, allowing aschematic diagram of the circuit to be drawn and the netlist to be automatically generated. Also,graphical user interface s were added for selecting the simulations to be done and manipulating the voltage and current output vectors. In addition, very capable graphing utilities have been added to see waveforms and graphs of parametric dependencies. Several free versions of these extended programs are available, some as introductory limited packages, and some without restrictions.**See also***

Input Output Buffer Information Specification (IBIS)

*Transistor models

*PSPICE **References****External links*** [

*http://denethor.wlu.ca/PSpice/pspice_tutorial.html Comprehensive, detailed PSPICE tutorial and user guide at Wilfrid Laurier University, Canada*]

* [*http://www.designers-guide.org/Perspective/life-of-spice.pdf Larry Nagel, "The Life of SPICE"*]

* [*http://bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/ The Spice Page*]

* [*http://www.eecs.berkeley.edu/Pubs/TechRpts/1989/1216.html Thomas Quarles' dissertation (SPICE3)*]

* [*http://www.brorson.com/gEDA/SPICE/simulation.html SPICE on gEDA HOWTO*]

* [*http://www.ecircuitcenter.com/SpiceTopics/History.htm A brief history of SPICE*]

* [*http://newton.ex.ac.uk/teaching/CDHW/Electronics2/userguide/ Spice 3 Userguide*]

* [*http://newton.ex.ac.uk/teaching/CDHW/Electronics2/Spice3Quickstart.html Spice 3 Quickstart Tutorial*]**Versions with source code available*** [

*http://embedded.eecs.berkeley.edu/pubs/downloads/spice/index.htm SPICE2 and SPICE3 at UC Berkeley*]

* [*http://embedded.eecs.berkeley.edu/pubs/downloads/cider/index.htm Cider at UC Berkeley*]

* [*http://ngspice.sourceforge.net/ ngspice: SPICE3 with updates and XSPICE extensions*]

* [*http://tclspice.sourceforge.net/ tclspice: ngspice and Tcl scripting*]

* [*http://users.ece.gatech.edu/~mrichard/Xspice/ XSPICE at Georgia Tech*]**Applications*** [

*http://www.sccs.swarthmore.edu/users/06/adem/engin/e77vlsi/lab2/ Sample Spice code and output for various circuits*]

* [*http://www.nanodottek.com/NDT14_08_2007.pdf NanoDotTek Report NDT14-08-2007, 12 August 2007*]

*Wikimedia Foundation.
2010.*