SPICE

SPICE(Simulation Program with Integrated Circuit Emphasis)is a general-purpose,open-sourceanalog electronic circuitsimulator.
It is a program used inintegrated circuitand board-level design to check the integrity ofcircuit designsand to predictcircuitbehavior.
Unlike board-level designs composed of discrete parts, it is not practical tobreadboardintegrated circuits before manufacture. Further, the high costs ofphotolithographic masksand 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 asparasitic 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 performMonte Carlosimulations 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 textnetlistdescribing the circuit elements (transistors,resistors,capacitors, etc.) and their connections, and translatethis description into equations to be solved.  The general equations produced arenonlineardifferential algebraic equationswhich are solved usingimplicit integration methods,Newton's methodandsparse matrixtechniques.
SPICE was developed at the Electronics Research Laboratory of theUniversity of California, Berkeleyby Laurence 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 Rohrer. CANCER is an acronym for "Computer Analysis of Nonlinear Circuits, Excluding Radiation".At these times many circuit simulators were developed under contracts with theUnited States Department of Defensethat needed the ability to evaluate theradiation hardnessof 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 thepublic domain.
SPICE1 was first presented at a conference in 1973.SPICE1 is coded inFORTRANand to construct the circuit equations usesnodal 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-timesteptransient 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 orderAdams-Moulton method) or the Gear integration method (also known asBDF), equation formulation viamodified 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 (withA. Richard Newtonas advisor) in 1989. It is written inC, uses the same netlist syntax, and addedX Window Systemplotting.
As an earlypublic domain softwareprogram withsource codeavailable,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 theBSD license.
The birth of SPICE was named anIEEE Milestonein 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.
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 atGeorgia Tech, which added mixed analog/digital "code models" for behavioral simulation; CIDER(previously CODECS), developed by UC Berkeley and Oregon State University, which addedsemiconductor device simulation;Ngspice,based on SPICE 3f5; WRspice,a C++ re-write of the original spice3f5 code. Other open-source simulators not developed by academics areQUCS, QUCS-S,Xyce,and Qucsator.
Berkeley 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 is ISPICE,an interactive version on a timeshare service,National CSS. The most prominent commercial versions of SPICE include HSPICE (originally commercialized byAshawna and Kim Haileyof Meta Software, but now owned bySynopsys) andPSPICE(now owned byCadence Design Systems). The integrated circuit industry adopted SPICE quickly, and until commercial versions became well developed many IC design houses had proprietary versions of SPICE.
Today a few IC manufacturers, typically the larger companies, have groups continuing to develop SPICE-based circuit simulation programs. Among these are ADICE andLTspiceatAnalog Devices,QSPICEatQorvo, MCSPICE, followed by Mica atFreescale Semiconductor, nowNXP Semiconductors, andTINA-TIatTexas Instruments.  Both LTspice and TINA-TI come bundled with models from their respective company.Other companies maintain internal circuit simulators which are not directly based upon SPICE, among them PowerSpice atIBM, TITAN atInfineon Technologies, Lynx atIntel Corporation, and Pstar atNXP Semiconductorsalso.
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.Precursors to SPICE often had a single purpose: The BIASprogram, for example, did simulation of bipolar transistor circuit operating points; the SLICprogram 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.
SPICE2 includes these analyses:
Since SPICE is generally used to model circuits withnonlinear elements, the small signal analyses are necessarily preceded by aquiescent pointcalculation at which the circuit is linearized. SPICE2 also contains code for other small-signal analyses:sensitivity analysis,pole-zero analysis, andsmall-signaldistortionanalysis. Analysis at various temperatures is 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 balanceor 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.
It is very important to use appropriate analyses with carefully chosen parameters. For example, application of linear analysis to nonlinear circuits should be justified separately. Also, application of transient analysis with default simulation parameters can lead to qualitatively wrong conclusions on circuit dynamics.
SPICE2 includes many semiconductor devicecompact models: three levels ofMOSFETmodel, a combinedEbers–MollandGummel–Poon bipolar model, aJFETmodel, and a model for ajunction diode. In addition, it had many other elements: resistors, capacitors, inductors (includingcoupling), independentvoltageandcurrent sources, idealtransmission lines, active components and voltage and current controlled sources.
SPICE3 added more sophisticated MOSFET models, which were needed due to advances in semiconductor technology.
In particular, theBSIMfamily 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 inadequate. 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, theCompact Model Council,to choose, maintain and promote the use of standard models.  The standard models today includeBSIM3,BSIM4,BSIMSOI,PSP,HICUM, andMEXTRAM.
Spice can use device models from foundryPDKs.
SPICE2 takes a textnetlistas input and produces line-printer listings as output, which fits with the computing environment in 1975.  These listings are either columns of numbers corresponding to calculated outputs (typically voltages or currents), or line-printercharacter "plots". SPICE3 retains the netlist for circuit description, but allows analyses to be controlled from acommand-lineinterface similar to theC shell. SPICE3 also added basicXplotting, asUNIXand engineeringworkstationsbecame common.
Vendors and various free software projects have addedschematic capturefrontendsto SPICE, allowing aschematic diagramof the circuit to be drawn and the netlist to be automatically generated and transferred to various SPICE backends. Also,graphical user interfaceswere 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.
As SPICE generally solves non-linear differential algebraic equations, it may be applied to simulating beyond the electrical realm.
Most prominent arethermal simulations, as thermal systems may be described by lumped circuit elements mapping onto the electronic SPICE elements (heat capacity → capacitance, thermal conductance/resistance → conductance/resistance, temperature → voltage, heat flow or heat generated → current). As thermal and electronic systems are closely linked by power dissipation and cooling systems, electro-thermal simulation today is supported by semiconductor device manufacturers offering (transistor) models with both electrical and thermal nodes.So one may obtain electrical power dissipation, resulting in self-heating causing parameter variations, and cooling system efficiency in a single simulation run.
SPICE may very well simulate the electronics part of a motor drive. However it will equally well describe theelectro-mechanicalmodel of the motor. Again this is achieved by mapping mechanical onto the electrical elements (torque → voltage, angular velocity → current, coefficient of viscous friction → resistance, moment of inertia → inductance).So again the final model consists of only SPICE compatible lumped circuit elements, but one gains mechanical together with electrical data during simulation.
Electromagnetic modelingis accessible to a SPICE simulator via the PEEC (partial element equivalent circuit) method.Maxwell's equations have been mapped, RLC, Skin effect, dielectric or magnetic materials and incident or radiated fields have been modelled.
However, as of 2019, SPICE cannot be used to "simulate photonics and electronics together in aphotonic circuit simulator",and thus it is not yet considered as a test simulator for photonic integrated circuits.
Micro-fluidic circuitshave been modelled with SPICEby creating a pneumatic FET.
SPICE has been applied to model the interface betweenbiological and electronic systems, e.g. as a design tools for synthetic biology and for the virtual prototyping of biosensors and lab-on-chip.
SPICE has been applied inoperations researchto evaluate perturbedsupply chains.