Mon Jan 10 09:49:19 EST 2011


Let's try to get spice working.  I have a schematic of a one-pole
variable lowpass filter I'd like to get simulated[2].

  - Transistor / Diode models
  - Voltage source specification
  - Output meter?

For the models it seems spicelib[1] is the appropriate tool: it
downloads spice models from manufacturer's sites and patches them to
work with ngspice.

So, how to install?  The file geda-parts.scm is not installed on my
system.  Seems like it's not in Debian and has to be installed
manually[3].  Ah, it's in apha state.  Here it goes:

cd /tmp
wget http://www.h-renrew.de/h/spicelib/download/spicelib-0.0.3.tar.gz
tar xf spicelib-0.0.3.tar.gz
make    # starts downloads

Then it fails at:

rm -rf model_library/nxp/diodes
mkdir -p model_library/nxp/diodes
cp unpack/nxp/diodes/* model_library/nxp/diodes
scripts/fix_trailing_newline.py model_library/nxp/diodes/*
patch -d model_library/nxp/diodes/ -p1 < model_patches/nxp_diodes.patch
patching file BAS16H.prm
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file BAS16H.prm.rej
patching file BZV85-C33.prm
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file BZV85-C33.prm.rej
patching file PDZ4.7B.prm
make: *** [create_nxp_diodes] Error 1

Seems like this needs some more attention.. 

[1] http://www.h-renrew.de/h/spicelib/doc/index.html
[2] http://zwizwa.be/darcs/pedal/onepole.sch
[3] http://www.h-renrew.de/h/spicelib/download/spicelib-0.0.3.tar.gz