Introduction to SPICE: teaching demo

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. 

Lecture Prerequisites:

  1. 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
  2. Minor background on operating a CLI (command-line-interface) environment.  The lecture will demonstrate the use of ngspice [1] 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 [1]:

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)

[1]”SPICE.”  Wikipedia, the free encyclopedia.
[2] Ngspice circuit simulator.

Technorati Tags: , , , ,


3 Responses to “Introduction to SPICE: teaching demo”

  1. 1 hip2b2 2007 3月 217:31 am

    congratulations allan! welcome to the faculty!

  2. 3 Allan Espinosa 2007 3月 219:07 pm

    yup, they gave me a teaching load of CE 141: Microprocessor labs for the summer term. They also discussed to give me the laboratory class of basic circuit analysis courses so that I can include SPICE simulations in the activities.


以下に詳細を記入するか、アイコンをクリックしてログインしてください。 ロゴ アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中