[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: TwoStageAmp example



OK, it's late, and my frain is pretty bried right now but...

Has anybody played with the TwoStageAmp example recently?  I looked at
it tonight in an attempt to start learning something about spice and
I've run into a couple if issues:

1) There is no "models" directory in the example, yet the "SPICE
model" element refers to that directory.  Since I am using the FC6
installation (installed via yum), I went and grabbed
geda-examples-0216.tar.gz, unpacked it, and failed to find a "models"
directory there too.  So I grabbed a copy of the 2N3904.mod file out
of CVS and placed it in a models directory.

2) When I run:

$ ngspice spice.netlist, I get all sorts of errors: (keeping in mind
the purpose of this exercise was to start learning something about
spice and/or ngspice -- these seem an awful lot like errors to me):
---------------------------------
/home/sdb/TwoStageAmp/Simulation.cmd: No such file or directory
---------------------------------
(ok -- this one I can fix)
---------------------------------

Circuit: * Spice file generated by gnetlist

Warning -- Level not specified on line "(is=1e-14 vaf=100   bf=300
ikf=0.4 xtb=1.5 br=4   cjc=4e-12  cje=8e-12 rb=20 rc=0.1 re=0.1
tr=250e-9  tf=350e-12 itf=1 vtf=2 xtf=3 vceo=40 icrating=200m
mfg=philips)"
Using level 1.
Error on line 14 : .temp 0 25 100
        Warning: .TEMP card obsolete - use .options TEMP and TNOM
Error on line 15 : .model 2n3904 npn(is=1e-14 vaf=100   bf=300 ikf=0.4
xtb=1.5 br=4   cjc=4e-12  cje=8e-12 rb=20 rc=0.1 re=0.1   tr=250e-9
tf=350e-12 itf=1 vtf=2 xtf=3 vceo=40 icrating=200m mfg=philips)
       unrecognized parameter (vceo) - ignored

       unrecognized parameter (40) - ignored

       unrecognized parameter (icrating) - ignored

       unrecognized parameter (200m) - ignored

       unrecognized parameter (mfg) - ignored

       unrecognized parameter (philips) - ignored
---------------------------------
So I decided to run gnetlist myself as:

$ gnetlist -g spice-sdb -o spice.netlist.wpd TwoStageAmp.sch

Now, when I invoke ngspice with:

$ ngspice spice.netlist.wpd

I get

Circuit: * gnetlist -g spice-sdb -o spice.netlist.wpd TwoStageAmp.sch.orig

Error on line 13 : q2 vcoll2 vbase2 vem2 2n3904
        unable to find definition of model  - default assumed
Error on line 23 : q1 vcoll1 vbase1 vem1 2n3904
        unable to find definition of model  - default assumed

I'm not sure what to try next, so I'll toss this out into the fray for
some pointers and ideas and play with it some more tomorrow.  But, in
the mean time, what am I missing?

--wpd


_______________________________________________ geda-user mailing list geda-user@xxxxxxxxxxxxxx http://www.seul.org/cgi-bin/mailman/listinfo/geda-user