SPICE on Linux Resources
7.25.2003 -- Cloned from previous document "Advanced SPICE netlisting. . . ."
9.1.2003 -- Added updates/enhancements for gnetlist and gnet-spice-sdb.scm.
9.9.2003 -- Added further updates/enhancements for gnetlist and gnet-spice-sdb.scm.
10.19.2003 -- Added multiple file opening for gschem. Bugfixes for gnet-spice-sdb & gnet-protelII.
12.25.2003 -- Bugfix of swizzled user subckt. Added ability to emit attributes for semiconductor devices.
3.24.2004 -- Bugfixes made to JFET stuff during Feb. Change released now.
12.21.2004 -- Updated HOWTO with DocBook version. Reorganized web page.
1.5.2004 -- New version of HOWTO.
Introduction and purpose
This web page contains information about performing circuit design and
SPICE simulation using the
gEDA environment on Linux.
I am making this stuff available for the open-source community because
I have worked on improving several gEDA tools, and through that
experience have collected
some wisdom -- as well as more material information -- which might be
of use to newbies.
Nota bene: If you are looking for a version of SPICE which runs on Linux, I recommend grabbing
ngspice, downloadable via
the ngspice home page on sourceforge.
It experienced a burst of development during 2004, and incorporates a number of new patches which
have increased its stability and augmented its feature set, and is therefore the preferred
open-source SPICE (for now).
Available materials
Information and documentation
-
SPICE on gEDA on Linux HOWTO
(
online html,
gzipped tarball
): This documents how to create SPICE netlists using the gEDA project
and my SPICE netlister backend, as well as how to perform SPICE
simulations on Linux using either LTSpice or ngspice/tclspice.
Latest update: 1.3.2005.
-
Gzipped tarball of Spice 2c6 manual in html format:
This document is useful to understand SPICE2 syntax.
I have attempted to write my netlister
in compliance with this specification.
This document is available in a live version
elsewhere on the web
in html format.
-
SPICE3f5 documentation is available in a live version
elsewhere on the web
in html format.
Note that a
major difference between SPICE2 and SPICE3 is that the POLY attribute
for dependent sources exists in SPICE2, but was removed for SPICE3.
Source code and other files for gEDA
I no longer maintain any gEDA source code here. Grab the latest gEDA stuff directly
out of CVS using the
instructions available from the gEDA home page.
SPICE models
Below are some SPICE models, mostly from the Linear Tech SwCADIII tool, and from
the Analog Devices designer's reference CDROM.
They are ready to use; just unzip and untar them, and
install them in your ${prefix}/geda/share/models/ directory.
They are not included in the gEDA distribution -- perhaps for
IP reasons? Therefore, if you are interested in doing SPICE
simulations with gEDA, you may want to download these.
Example projects
I am making these projects available to show how to use gEDA to create
SPICE netlists for simulation. The circuits themselves may or may not
be optimal designs, and may or may not work in practice. Don't
complain to me if you build one of them and it melts down and sets your workbench on fire!
-
Two stage amplifier project: This is an archive of a simple two stage amplifier
which correctly netlists and can be simulated using LTSpice or ngspice/tclspice.
Latest update: 3.21.2003.
-
Transimpedance amplifier project:
This is an archive of a simple, wide-bandwidth transimpedance amplifier based upon an
Analog Devices AD8009 op amp. It creates valid SPICE netlists and can
be simulated using LTSpice or ngspice/tclspice.
Latest update: 3.21.2003.
-
RF amplifier project:
This is an archive of a wide-bandwidth amplifier based upon an Agilent
MSA-2463 monolithic amp. This project exemplifies how to construct a
hierarchical simulation using .SUBCKT models created using gschem.
The amp itself has gain far out beyond 1 GHz -- LTSpice says beyond 10
GHz, although Agilent's datasheet makes more modest claims.
Note: This design archive was created using the gEDA archive utility
garchive.
Latest update: 12.25.2003.
Return to Stuart Brorson's home page.