From 5ed51c2668a70046668d43b32b5950ae91d1a7fc Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 21 Oct 2012 11:50:23 +0200 Subject: [PATCH] example input file as cited in manual --- examples/xspice/xspice_c1.cir | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 examples/xspice/xspice_c1.cir diff --git a/examples/xspice/xspice_c1.cir b/examples/xspice/xspice_c1.cir new file mode 100644 index 000000000..022d91386 --- /dev/null +++ b/examples/xspice/xspice_c1.cir @@ -0,0 +1,22 @@ +A Berkeley SPICE3 compatible circuit +* +* This circuit contains only Berkeley SPICE3 components. +* +* The circuit is an AC coupled transistor amplifier with +* a sinewave input at node "1", a gain of approximately -3.9, +* and output on node "coll". +* +.tran 1e-5 2e-3 +* +vcc vcc 0 12.0 +vin 1 0 0.0 ac 1.0 sin(0 1 1k) +ccouple 1 base 10uF +rbias1 vcc base 100k +rbias2 base 0 24k +q1 coll base emit generic +rcollector vcc coll 3.9k +remitter emit 0 1k +* +.model generic npn +* +.end