[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-user: spice-sdb - NPN model in gschem
I'm trying to do a simple NPN BJT model in gschem for use with ngspice. I
am using gnetlist -v -o testnpn.CIR -g spice-sdb testnpn.sch .
I have filled in the following for the NPN transistor in gschem:
device: NPN
refdes: Q1
value: FC1134
model: TF=8U
model-name FC1134
This ALMOST works when running gnetlist, except the model comes out as:
.MODEL FC1134 <unknown> (TF=8U)
The <unknown>, in theory, should be NPN. It's not obvious to me what
additional attribute should be set. I've tried adding NPN to the end of
both model and model-name.
Here's the sch file:
cat testnpn.CIR
* gnetlist -v -o testnpn.CIR -g spice-sdb testnpn.sch
*********************************************************
* Spice file generated by gnetlist *
* spice-sdb version 12.27.2005 by SDB -- *
* provides advanced spice netlisting capability. *
* Documentation at http://www.brorson.com/gEDA/SPICE/ *
*********************************************************
*============== Begin SPICE netlist of main design ============
VSAC 1 0 dc 0.7 ac 1
Q1 2 1 0 FC1134
.MODEL FC1134 <unknown> (TF=8U)
R1 2 3 100
VBAT 3 0 DC 6V
.end
cat testnpn.sch
v 20061020 1
C 40000 40000 0 0 0 title-B.sym
C 46600 46600 1 0 0 vac-1.sym
{
T 47300 47250 5 10 1 1 0 0 1
refdes=VSAC
T 47300 47450 5 10 0 0 0 0 1
device=vac
T 47300 47650 5 10 0 0 0 0 1
footprint=none
T 47300 47050 5 10 1 1 0 0 1
value=dc 0.7 ac 1
}
C 49800 47700 1 0 0 spice-npn-1.sym
{
T 50700 48400 5 10 0 0 0 0 1
device=NPN
T 50700 48200 5 10 1 1 0 0 1
refdes=Q1
T 49800 47700 5 10 0 0 0 0 1
value=FC1134
T 49800 47700 5 10 0 0 0 0 1
model=TF=8U
T 49800 47700 5 10 0 0 0 0 1
model-name=FC1134
T 49800 47700 5 10 0 0 0 0 1
description=NPN
}
C 50500 49000 1 90 0 resistor-1.sym
{
T 50100 49300 5 10 0 0 90 0 1
device=RESISTOR
T 50200 49400 5 10 1 1 90 0 1
refdes=R1
T 50700 49300 5 10 1 1 90 0 1
value=100
}
C 52300 48600 1 270 0 battery-2.sym
{
T 53000 48300 5 10 0 0 270 0 1
device=BATTERY
T 52900 48000 5 10 1 1 0 0 1
refdes=VBAT
T 53600 48300 5 10 0 0 270 0 1
symversion=0.1
T 52900 47800 5 10 1 1 0 0 1
value=DC 6V
}
C 50300 46100 1 0 0 gnd-1.sym
N 50400 47700 50400 46400 4
N 50400 49000 50400 48700 4
N 49800 48200 46900 48200 4
N 46900 48200 46900 47800 4
N 46900 46600 50400 46600 4
N 52500 47700 52500 46600 4
N 52500 46600 50400 46600 4
N 52500 48600 52500 50400 4
N 52500 50400 50400 50400 4
N 50400 50400 50400 49900 4
Kurt
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user