delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/01/26/13:08:03

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <51041B31.5060605@systella.fr>
Date: Sat, 26 Jan 2013 19:06:41 +0100
From: =?ISO-8859-1?Q?BERTRAND_Jo=EBl?= <joel DOT bertrand AT systella DOT fr>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121123 Firefox/10.0.11 Iceape/2.7.11
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: [geda-user] gnetlist and gspiceui
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (rayleigh.systella.fr [192.168.254.1]); Sat, 26 Jan 2013 19:06:59 +0100 (CET)
X-Virus-Scanned: clamav-milter 0.97.6 at rayleigh
X-Virus-Status: Clean
Reply-To: geda-user AT delorie DOT com

This is a multi-part message in MIME format.
--------------030602040002020509080901
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

	Hello,

	A long time ago, I have used gschem/gnetlist/pcb to route a lot of 
electronic projects.

	For a few weeks, I'm trying to simulate a very simple schematic with 
gnucap or ngspice. I have built from scratch :
- gschem 1.9.0 (g222ae70)
- gspiceui 1.0.0 and 1.0.1 (from svn)
- gnucap 2009.12.07 RCS 26.136
- ngspice revision 25

	I have attached my schematic (I can simulate some other circuits with 
D, C, R, L, NPN and PNP). I suppose I have made a mistake but I have 
tried to fix this troube without any success. All spice models come from 
www.diodes.com.

	When I run gnetlist (/usr/local/bin/gnetlist -v -g spice-sdb -o 
/home/bertrand/electronique/f1000b/alim.ckt 
/home/bertrand/electronique/f1000b/alim.sch), gnetlist seems to run 
without any error. My alim.cky file is also attached.

	gspiceui indicates that the netlist file wasn't loaded correctly. Why ? 
I don't see any error in alim.ckt.

	Any help will be welcome.

	Best regards,

	JB

--------------030602040002020509080901
Content-Type: text/plain;
 name="alim.sch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="alim.sch"

v 20121203 2
C 40000 40000 0 0 0 title-B.sym
C 43800 48900 1 0 0 diode-1.sym
{
T 44200 49500 5 10 0 0 0 0 1
device=DIODE
T 44100 49400 5 10 1 1 0 0 1
refdes=D1
T 43900 48700 5 10 1 1 0 0 1
model-name=1N4007
}
C 45200 48900 1 0 0 diode-1.sym
{
T 45600 49500 5 10 0 0 0 0 1
device=DIODE
T 45500 49400 5 10 1 1 0 0 1
refdes=D2
T 45300 48700 5 10 1 1 0 0 1
model-name=1N4007
}
C 46800 47500 1 0 0 diode-1.sym
{
T 47200 48100 5 10 0 0 0 0 1
device=DIODE
T 47100 48000 5 10 1 1 0 0 1
refdes=D6
T 46800 47500 5 10 1 1 0 0 1
model-name=1N4007
}
C 48100 47500 1 0 0 diode-1.sym
{
T 48500 48100 5 10 0 0 0 0 1
device=DIODE
T 48400 48000 5 10 1 1 0 0 1
refdes=D8
T 48100 47500 5 10 1 1 0 0 1
model-name=1N4007
}
C 47600 49300 1 180 0 diode-1.sym
{
T 47200 48700 5 10 0 0 180 0 1
device=DIODE
T 47300 48800 5 10 1 1 180 0 1
refdes=D5
T 46900 49400 5 10 1 1 0 0 1
model-name=1N4007
}
C 49000 49300 1 180 0 diode-1.sym
{
T 48600 48700 5 10 0 0 180 0 1
device=DIODE
T 48700 48800 5 10 1 1 180 0 1
refdes=D7
T 48200 49400 5 10 1 1 0 0 1
model-name=1N4007
}
C 46000 47900 1 180 0 diode-1.sym
{
T 45600 47300 5 10 0 0 180 0 1
device=DIODE
T 45700 47400 5 10 1 1 180 0 1
refdes=D4
T 45200 48000 5 10 1 1 0 0 1
model-name=1N4007
}
C 44700 47900 1 180 0 diode-1.sym
{
T 44300 47300 5 10 0 0 180 0 1
device=DIODE
T 43900 48000 5 10 1 1 0 0 1
model-name=1N4007
T 44100 47300 5 10 1 1 0 0 1
refdes=D3
}
C 43800 46800 1 0 0 resistor-1.sym
{
T 44100 47200 5 10 0 0 0 0 1
device=RESISTOR
T 44000 47100 5 10 1 1 0 0 1
refdes=R3
T 43800 46800 5 10 1 1 0 0 1
value=1000k
}
C 45100 46800 1 0 0 resistor-1.sym
{
T 45400 47200 5 10 0 0 0 0 1
device=RESISTOR
T 45300 47100 5 10 1 1 0 0 1
refdes=R5
T 45100 46800 5 10 1 1 0 0 1
value=1000k
}
C 46800 46800 1 0 0 resistor-1.sym
{
T 47100 47200 5 10 0 0 0 0 1
device=RESISTOR
T 47000 47100 5 10 1 1 0 0 1
refdes=R7
T 46800 46800 5 10 1 1 0 0 1
value=1000k
}
C 48100 46800 1 0 0 resistor-1.sym
{
T 48400 47200 5 10 0 0 0 0 1
device=RESISTOR
T 48300 47100 5 10 1 1 0 0 1
refdes=R9
T 48100 46800 5 10 1 1 0 0 1
value=1000k
}
C 45100 49700 1 0 0 resistor-1.sym
{
T 45400 50100 5 10 0 0 0 0 1
device=RESISTOR
T 45300 50000 5 10 1 1 0 0 1
refdes=R2
T 45100 49700 5 10 1 1 0 0 1
value=1000k
}
C 43800 49700 1 0 0 resistor-1.sym
{
T 44100 50100 5 10 0 0 0 0 1
device=RESISTOR
T 44000 50000 5 10 1 1 0 0 1
refdes=R1
T 43800 49700 5 10 1 1 0 0 1
value=1000k
}
C 46700 49700 1 0 0 resistor-1.sym
{
T 47000 50100 5 10 0 0 0 0 1
device=RESISTOR
T 46900 50000 5 10 1 1 0 0 1
refdes=R4
T 46700 49700 5 10 1 1 0 0 1
value=1000k
}
C 48100 49700 1 0 0 resistor-1.sym
{
T 48400 50100 5 10 0 0 0 0 1
device=RESISTOR
T 48300 50000 5 10 1 1 0 0 1
refdes=R6
T 48100 49700 5 10 1 1 0 0 1
value=1000k
}
C 40400 45800 1 0 0 spice-model-1.sym
{
T 40500 46500 5 10 0 1 0 0 1
device=model
T 40500 46400 5 10 1 1 0 0 1
refdes=A1
T 41700 46100 5 10 1 1 0 0 1
model-name=1N4007
T 40900 45900 5 10 1 1 0 0 1
file=../spice/1N4007.mod
}
C 40400 45200 1 0 0 spice-directive-1.sym
{
T 40500 45500 5 10 0 1 0 0 1
device=directive
T 40500 45600 5 10 1 1 0 0 1
refdes=A2
T 40500 45300 5 10 1 1 0 0 1
value=.option TEMP=60
}
C 41200 47800 1 0 0 vac-1.sym
{
T 41900 48450 5 10 1 1 0 0 1
refdes=V1
T 41900 48650 5 10 0 0 0 0 1
device=vac
T 41900 48850 5 10 0 0 0 0 1
footprint=none
T 41900 48250 5 10 1 1 0 0 1
value=dc 0 ac 1
}
N 43800 49100 41500 49100 4
N 41500 49100 41500 49000 4
N 41500 47800 41500 47700 4
N 41500 47700 43800 47700 4
N 44700 49100 45200 49100 4
N 45100 47700 44700 47700 4
N 43500 49100 43500 49800 4
N 43500 49800 43800 49800 4
N 44700 49800 45100 49800 4
N 44900 49800 44900 49100 4
N 46000 49800 46700 49800 4
N 46100 49100 46700 49100 4
N 46800 47700 46000 47700 4
N 46000 46900 46800 46900 4
N 43500 47700 43500 46900 4
N 43500 46900 43800 46900 4
N 44700 46900 45100 46900 4
N 44900 46900 44900 47700 4
N 47700 47700 48100 47700 4
N 48100 46900 47700 46900 4
N 47600 49100 48100 49100 4
N 48100 49800 47600 49800 4
N 49000 49100 49000 49800 4
N 49000 46900 49000 48400 4
N 49000 48400 43500 48400 4
N 43500 48400 43500 49100 4
N 43500 47700 43500 48200 4
N 43500 48200 49400 48200 4
N 49400 48200 49400 49100 4
N 49400 49100 49000 49100 4
N 46300 49800 46300 49100 4
N 46300 49100 46300 46000 4
N 46300 46000 43500 46000 4
N 43500 41500 43500 46000 4
N 46500 47700 46500 46000 4
N 46500 46000 49500 46000 4
N 49500 41500 49500 46000 4
C 45100 44800 1 0 0 capacitor-2.sym
{
T 45300 45500 5 10 0 0 0 0 1
device=POLARIZED_CAPACITOR
T 45300 45300 5 10 1 1 0 0 1
refdes=C1
T 45300 45700 5 10 0 0 0 0 1
symversion=0.1
T 45100 44800 5 10 1 1 0 0 1
value=470u
}
N 43500 45000 45100 45000 4
C 46000 41400 1 0 0 resistor-1.sym
{
T 46300 41800 5 10 0 0 0 0 1
device=RESISTOR
T 46200 41700 5 10 1 1 0 0 1
refdes=R8
T 46000 41400 5 10 1 1 0 0 1
value=2.2k
}
N 43500 41500 46000 41500 4
C 47800 44900 1 0 0 resistor-1.sym
{
T 48100 45300 5 10 0 0 0 0 1
device=RESISTOR
T 48000 45200 5 10 1 1 0 0 1
refdes=R10
T 47800 44900 5 10 1 1 0 0 1
value=4.7k
}
N 46000 45000 47800 45000 4
N 48700 45000 49500 45000 4
N 49500 41500 46900 41500 4
C 50100 44300 1 0 0 gnd-1.sym
N 49500 45000 50200 45000 4
N 50200 45000 50200 44600 4
C 48700 44700 1 180 0 diode-1.sym
{
T 48300 44100 5 10 0 0 180 0 1
device=DIODE
T 48400 44200 5 10 1 1 180 0 1
refdes=D9
T 48400 44600 5 10 1 1 0 0 1
model-name=1N4007
}
N 48700 44500 49500 44500 4
N 47800 44500 47200 44500 4
N 47200 43700 47200 45000 4
C 44000 43600 1 0 0 resistor-1.sym
{
T 44300 44000 5 10 0 0 0 0 1
device=RESISTOR
T 44200 43900 5 10 1 1 0 0 1
refdes=R11
T 44200 43400 5 10 1 1 0 0 1
value=470k
}
N 48800 43700 49500 43700 4
C 46800 43900 1 180 0 zener-1.sym
{
T 46400 43300 5 10 0 0 180 0 1
device=DIODE
T 46500 43400 5 10 1 1 180 0 1
refdes=Z1
T 45800 44000 5 10 1 1 0 0 1
model-name=DI_AZ23C9V1
}
N 45900 43700 44900 43700 4
N 44000 43700 43500 43700 4
N 45400 43700 45400 43200 4
N 45400 43200 48200 43200 4
C 40400 44200 1 0 0 spice-model-1.sym
{
T 40500 44900 5 10 0 1 0 0 1
device=model
T 40500 44800 5 10 1 1 0 0 1
refdes=A3
T 41700 44500 5 10 1 1 0 0 1
model-name=ZVP0545A
T 40900 44300 5 10 1 1 0 0 1
file=../spice/ZVP0545A.mod
}
C 40400 43200 1 0 0 spice-model-1.sym
{
T 40500 43900 5 10 0 1 0 0 1
device=model
T 40500 43800 5 10 1 1 0 0 1
refdes=A4
T 41700 43500 5 10 1 1 0 0 1
model-name=DI_AZ23C9V1
T 40900 43300 5 10 1 1 0 0 1
file=../spice/AZ23C9V1.mod
}
C 48000 43200 1 270 1 pmos-3.sym
{
T 48500 43800 5 10 0 0 90 2 1
device=PMOS_TRANSISTOR
T 48600 43900 5 10 1 1 90 2 1
refdes=Q1
T 48000 43200 5 10 1 1 0 0 1
model-name=ZVP0545A
}
N 46800 43700 48000 43700 4

--------------030602040002020509080901
Content-Type: text/plain;
 name="alim.ckt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="alim.ckt"

* /usr/local/bin/gnetlist -v -g spice-sdb -o /home/bertrand/electronique/f1000b/alim.ckt /home/bertrand/electronique/f1000b/alim.sch
*********************************************************
* Spice file generated by gnetlist                      *
* spice-sdb version 4.28.2007 by SDB --                 *
* provides advanced spice netlisting capability.        *
* Documentation at http://www.brorson.com/gEDA/SPICE/   *
*********************************************************
*vvvvvvvv  Included SPICE model from ../spice/1N4007.mod vvvvvvvv
.MODEL 1N4007 D(IS=76.9p RS=42.0m BV=1.00k IBV=5.00u CJO=26.5p  M=0.333 N=1.45 TT=4.32u)
*^^^^^^^^  End of included SPICE model from ../spice/1N4007.mod ^^^^^^^^
*
*vvvvvvvv  Included SPICE model from ../spice/ZVP0545A.mod vvvvvvvv
*
*Zetex ZVP0545A Spice Model v1.0 Last Revised 4/8/2004
*              
*
.SUBCKT ZVP0545A 3 4 5
*                D G S
M1 6 20 8 8 MOSMOD
M2 6 20 8 8 MOSMODS
RG 4 2 85
RIN 2 8 200E6
RD 3 6 RMOD1 71
RS 8 5 RMOD1 6.6 
RL 3 5 200E6
C1 2 8 110E-12
D1 3 5 DMOD1
D2 3 17 DMOD2
Egs1 2 17 2 8 1
Egt1 2 20 5 21 1
Vgt1 5 22 1
Igt1 5 21 1
Rgt 21 22 RMOD2 1
.MODEL MOSMOD PMOS VTO=-2.56 IS=1E-15 KP=.059 CBD=15E-12 PB=1 LAMBDA=4.9E-3
.MODEL MOSMODS PMOS VTO=-2.2 IS=1E-15 KP=0.002 PB=1
.MODEL DMOD1 D IS=2E-13 RS=10 N=1.01 IKF=3e-3
.MODEL DMOD2 D CJO=18e-12 IS=1e-30 N=10
.MODEL RMOD1 RES (TC1=8E-3 TC2=1.7E-5)
.MODEL RMOD2 RES (TC1=-2.5e-3 TC2=3.3e-6)
.ENDS
*^^^^^^^^  End of included SPICE model from ../spice/ZVP0545A.mod ^^^^^^^^
*
*vvvvvvvv  Included SPICE model from ../spice/AZ23C9V1.mod vvvvvvvv
*SRC=AZ23C9V1;DI_AZ23C9V1;Diodes;Zener <=10V; 9.10V  0.300W
*SYM=HZEN
.SUBCKT DI_AZ23C9V1  1 2
*        Terminals    A   K
D1 1 2 DF
DZ 3 1 DR
VZ 2 3 8.00
.MODEL DF D ( IS=13.6p RS=31.8 N=1.10
+ CJO=48.9p VJ=0.750 M=0.330 TT=50.1n )
.MODEL DR D ( IS=2.72f RS=2.30 N=1.49 )
*^^^^^^^^  End of included SPICE model from ../spice/AZ23C9V1.mod ^^^^^^^^
*
*==============  Begin SPICE netlist of main design ============
MQ1 0 12 11 ZVP0545A 
DZ1 11 12 DI_AZ23C9V1 
R11 3 12 470k  
D9 0 11 1N4007 
R10 11 0 4.7k  
R8 3 0 2.2k  
C1 3 11 470u  
V1 1 6 dc 0 ac 1
.option TEMP=60
R6 10 6 1000k  
R4 3 10 1000k  
R1 1 2 1000k  
R2 2 3 1000k  
R9 9 1 1000k  
R7 8 9 1000k  
R5 7 8 1000k  
R3 6 7 1000k  
D3 7 6 1N4007 
D4 0 7 1N4007 
D7 6 5 1N4007 
D5 5 3 1N4007 
D8 4 1 1N4007 
D6 0 4 1N4007 
D2 2 3 1N4007 
D1 1 2 1N4007 
.end

--------------030602040002020509080901--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019