ngspice/paranoia_parallel/examples/TransImpedanceAmp
Brian Taylor d881158a41 Paranoia_Parallel: a test suite for more than 100 test circuits,
running in parallel on a multi-core machine (12 min execution time
on a i9 9900, ngspice compiled with gcc, debug mode enabled.
Linux with Valgrind and Parallel are required.
2026-06-29 17:35:00 +02:00
..
README Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00
output.net Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00

README

This directory holds a SPICE netlist with SPICE2 POLY constructs in
controlled sources as typically found in vendor models.  The circuit
is just a two-stage transimpedance amp using an AD8009,
along with some slow components (AD780 and OP177A) to set bias
points.  Vendor models are used for all active components.
Successfully running this test shows that you have successfully built
the XSpice stuff with the POLY codemodel, and that you should be able
to simulate SPICE netlists with embedded vendor models.

To run this netlist, just do the following:

[localhost]# ngspice
ngspice 1 -> source output.net
ngspice 2 -> run
ngspice 3 -> plot Vout2

(Note that when you read in the netlist, you will get a bunch of 
warnings saying stuff like:

Warning -- Level not specified on line "()"
Using level 1.

Also, ngspice will complain about:

Error on line 50 : r:u101:1 u101:40 0 1e3 tc=7e-6
         unknown parameter (tc)
Error on line 283 : .temp 0 25 50 75 100
         Warning: .TEMP card obsolete - use .options TEMP and TNOM

You can ignore all this stuff . . . .)

You should get a pop-up window showing two square pulses (the second
smaller than the first) with a little bit of overshoot on the rising
and falling edges.

This stuff was done as an adjunct to work on the gEDA project.
Information about gEDA is available at http://geda.seul.org/ .
Please direct all questions/suggestions/bugs/complaints about XSpice
extensions to ngspice to Stuart Brorson -- mailto:sdb@cloud9.net.

6.23.2002 -- SDB.