[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: problem spice aop
Stuart Brorson wrote:
Umm, which netlister are you using, and which version of gnetlist?
If you are using gEDA20030525 (the most recent) you should netlist by saying:
gnetlist -g spice-sdb -o Spicefilename.cir Schematicname.sch
Also, it may help if you place the full pathname to your model file
into the file attribute. This will be something like
"/home/myhome/myproject/models/lm741.mod".
Also, since your component's refdes is X1, make sure that the
file lm741.mod has a .subckt header (instead of .model). If the file
is a .subckt, you use the refdes prefix X. If the file is a .model,
you should use the refdes prefix U.
If this doesn't help, please post your .sch and .mod files.
Hi,
Thanx for your help. I have tried to fix my netlist with your advice, but
without any result :-(
Thus, I post my gschem netlist (.sch) :
v 20030525
C 36600 59100 1 0 0 max4107-1.sym
{
T 36800 60200 5 10 1 1 0 0
refdes=X1
T 36600 59100 5 10 0 1 0 0
model-name=lm741
T 36600 59100 5 10 1 1 0 0
file=/import/home/dumaitre/QAM16/gschem/lm741.mod
T 36600 59100 5 10 1 1 0 0
value=lm741
}
C 36600 57000 1 0 0 resistor-1.sym
{
T 37000 57200 5 10 0 1 0 0
refdes=R1
T 37200 56800 5 10 1 1 0 0
value=240
T 36700 56800 5 10 0 1 0 0
model=RES
}
C 36200 58100 1 90 0 resistor-1.sym
{
T 35900 58300 5 10 1 1 90 0
refdes=R0
T 36200 58100 5 10 1 1 0 0
value=27
T 36200 58100 5 10 1 1 0 0
model=RES
}
N 36100 59000 36100 59300 4
N 36100 59300 36600 59300 4
N 36600 57100 36600 59300 4
N 37500 57100 38600 57100 4
N 38600 57100 38600 59500 4
C 37200 60400 1 0 0 capacitor-1.sym
{
T 37400 60900 5 10 0 1 0 0
refdes=C1
T 37200 60400 5 10 1 1 0 0
value=1000p
T 37200 60400 5 10 0 1 0 0
model=CAP
}
C 37200 60900 1 0 0 capacitor-1.sym
{
T 37400 61400 5 10 0 1 0 0
refdes=C0
T 37200 60900 5 10 1 1 0 0
value=0.1u
T 37200 60900 5 10 0 1 0 0
model=CAP
}
C 37100 58100 1 0 0 capacitor-1.sym
{
T 37300 58600 5 10 0 1 0 0
refdes=C2
T 37100 58100 5 10 1 1 0 0
value=1000p
T 37100 58100 5 10 0 1 0 0
model=CAP
}
C 37100 57500 1 0 0 capacitor-1.sym
{
T 37300 58000 5 10 0 1 0 0
refdes=C3
T 37100 57500 5 10 1 1 0 0
value=0.1u
T 37100 57500 5 10 0 1 0 0
model=CAP
}
C 38200 57400 1 0 0 gnd-1.sym
N 36900 57300 39100 57300 4
N 38300 58300 38000 58300 4
N 37100 57700 36900 57700 4
N 36900 58300 37100 58300 4
N 36900 57300 36900 58900 4
N 36900 58900 37100 58900 4
N 37100 58900 37100 59100 4
N 37100 60600 37200 60600 4
N 37100 61100 37200 61100 4
N 38100 61100 38200 61100 4
N 38200 60600 38100 60600 4
C 38100 60000 1 0 0 gnd-1.sym
N 38200 60300 38200 61100 4
C 36000 57600 1 0 0 gnd-1.sym
N 36100 57900 36100 58100 4
N 37600 59500 38600 59500 4
C 38600 60400 1 0 0 vdc-1.sym
{
T 39300 61050 5 10 1 1 0 0
refdes=Vcc
T 39300 60850 5 10 1 1 0 0
value=DC 5V
}
N 38900 61600 37100 61600 4
N 37100 59900 37100 61600 4
N 38900 60400 38200 60400 4
C 39200 57200 1 0 0 vdc-1.sym
{
T 39900 57850 5 10 1 1 0 0
refdes=Vee
T 39900 57650 5 10 1 1 0 0
value=DC 5V
}
N 39500 58400 38300 58400 4
N 38300 57700 38300 58400 4
N 38000 57700 38300 57700 4
N 39100 57300 39100 57200 4
N 39100 57200 39500 57200 4
N 36100 58000 35600 58000 4
N 35600 58000 35600 59700 4
N 35600 59700 36600 59700 4
And the result of the gnetlist command :
jolitorax:[~/QAM16/gschem] > gnetlist -g spice-sdb -o test_aop.cir
test_aop.sch
gEDA/gnetlist version 20030525
gEDA/gnetlist comes with ABSOLUTELY NO WARRANTY; see COPYING for more
details.
This is free software, and you are welcome to redistribute it under certain
conditions; please see the COPYING file for more details.
Loading schematic [test_aop.sch]
Using SPICE backend by SDB -- Version of 3.31.2003
schematic-type = normal schematic
model-name = chematic
Found independent voltage source. Refdes = Vee
Found independent voltage source. Refdes = Vcc
Found capacitor. Refdes = C3
Found capacitor. Refdes = C2
Found capacitor. Refdes = C0
Found capacitor. Refdes = C1
Found resistor. Refdes = R0
Found resistor. Refdes = R1
Found .subcircuit. Refdes = X1
ERROR: In procedure string-ref:
ERROR: Argument out of range: 0
jolitorax:[~/QAM16/gschem] >
I have found the description of the LM741 (I don't know the spice
description of the max4107). It begins with
.SUBCKT LM741/NS 1 2 99 50 28
Any idea ? Thanx in advance,
FLO