[<<][synth][>>][..]
Tue Feb 16 14:03:53 EST 2016
Spice BJT models
Not entirely clear how to add NPN models to a spice file so gnucap can
simulate it.
Q1 1 2 3 NPN
Says 'Q1: can't find: NPN'
Models are separate in spice files.
Seems that this needs to be added in the schematic as an "A"
(annotation?) block.
[master] tom@tp:~/rai/spice$ apt-file find 2N3904.mod
apt-file find 2N3904.mod
geda-examples: /usr/share/doc/geda-examples/examples/TwoStageAmp/models/2N3904.mod
So the component needs a value=2N3904 attribute.
C 43700 45200 1 0 0 npn.sym
{
T 44300 45700 5 10 0 0 0 0 1
device=NPN_TRANSISTOR
T 44300 45700 5 10 1 1 0 0 1
refdes=Q1
T 44300 45500 5 10 1 1 0 0 1
value=2N3904
}
The schematic then needs a separate model box to trigger inclusion by
gnetlist of the model file into the final spice file.
C 53800 49800 1 0 0 gnucap-model-1.sym
{
T 53900 50400 5 10 0 1 0 0 1
device=model
T 53900 50300 5 10 1 1 0 0 1
refdes=A1
T 55100 50000 5 10 1 1 0 0 1
model-name=2N3904
T 54300 49800 5 10 1 1 0 0 1
file=gaf/models/2N3904.mod
}
[Reply][About]
[<<][synth][>>][..]