Introduction to SPICE: teaching demo
2007 March 21
I applied a couple of weeks ago to join the faculty of the ECCE Department in Ateneo de Manila. For my demo teaching class, I decided to give a short lecture on using SPICE for DC circuit analsysis of simple resistor networks.
Familiarity with basic electronic concepts. The topics for this introduction will contain DC analysis of passive devices (e.g. resistors, inductors, capacitors). A short lecture on basic circuit analysis might be included if I am able to obtain a copy of Electric Circuit Analysis by Johnson and Johnson
Minor background on operating a CLI (command-line-interface) environment. The lecture will demonstrate the use of ngspice  on a Linux terminal.
SPICE stands for “Simulation Program with Integrated Circuit Emphasis”. Most simulation tools such as Electronic WorkBench, MultiSim and LTSpice generate SPICE code from the schematics diagrams that were drawn by the designer. For a quick overview of SPICE here, is a short description from Wikipedia :
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 designs can often be breadboarded, but designers may want more information about the circuit than is available from a single mock-up. For instance, performance is affected by component manufacturing tolerances and it is helpful for designers to simulate with SPICE to predict the effect of variations of those values. Even with a breadboard, some aspects may not be accurate compared to the final printed wiring board, such as parasitic resistances and capacitances. In these cases it is common to perform Monte Carlo simulations using SPICE, 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 nonlinear differential algebraic equations which are solved using implicit integration methods, Newton’s method and sparse matrix techniques.
Materials will be posted later on (I hope). The class will be held on March 21, 2007 (GMT+0800) in Faura Hall Rm 319 (see my Google Calendar)
“SPICE.” Wikipedia, the free encyclopedia. http://en.wikipedia.org/wiki/SPICE
 _Ngspice circuit simulator. _http://www.ngspice.org
Technorati Tags: spice, simulation, circuit analysis, electronics, ateneo ecce