X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-TCPREMOTEIP: 98.110.213.70 X-Authenticated-UID: jpd AT noqsi DOT com From: John Doty Content-Type: multipart/alternative; boundary="Apple-Mail=_7AFEEBA4-07E5-4B6D-961C-D8B413175865" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: [geda-user] lepton-netlist spice hierarchy Date: Tue, 16 Nov 2021 11:44:28 -0500 References: <20211115223137 DOT 6977 DOT qmail AT rahul DOT net> <9F9BD4AD-8E75-41D6-8EAD-974B0C57977E AT noqsi DOT com> <20211116005009 DOT 12034 DOT qmail AT rahul DOT net> To: "conover AT rahul DOT net (John Conover) [via geda-user AT delorie DOT com]" In-Reply-To: <20211116005009.12034.qmail@rahul.net> Message-Id: <29531129-EE12-4368-816B-D77BB7767295@noqsi.com> X-Mailer: Apple Mail (2.3608.120.23.2.7) Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --Apple-Mail=_7AFEEBA4-07E5-4B6D-961C-D8B413175865 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Nov 15, 2021, at 7:50 PM, conover AT rahul DOT net (John Conover) [via = geda-user AT delorie DOT com] wrote: >=20 > http://www.johncon.com/john/archive/imm-6.tar.gz = >=20 > which is the gEDA sources. >=20 > Changing the program names to the Lepton equivilents, all works fine, > except the Spice file, schematic.cir, has only the power supply on the > top level, schematic.sch. Well, that=E2=80=99s a complete, complicated project. Can you strip it = down into a simple test case to ease debugging? Something like: with a single, embedded component. Curiously, this works fine in Lepton with spice-sdb, generating: * lepton-netlist -g spice-sdb sdbbug.sch -o lepton-sdb.cir ********************************************************* * Spice file generated by lepton-netlist * * spice-sdb by SDB * * provides advanced spice netlisting capability. * * Documentation at wiki.geda-project.org/geda:csygas * ********************************************************* *=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Begin SPICE netlist of main = design =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D X1 0 Vss PVSS .end But, it doesn=E2=80=99t work right in gnetlist: it loses the connections = to named nets! * gnetlist -g spice-sdb -o geda-sdb.cir sdbbug.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/ * ********************************************************* *=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Begin SPICE netlist of main = design =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D X1 unconnected_pin-1 unconnected_pin-2 PVSS .end Versions:=20 gEDA 1.8.2 (g875406c), Ubuntu apt install Lepton EDA/lepton-netlist 1.9.16.20210731 (git: 13cbc49), compiled from = git a few months ago John Doty Noqsi Aerospace, Ltd. jpd AT noqsi DOT com --Apple-Mail=_7AFEEBA4-07E5-4B6D-961C-D8B413175865 Content-Type: multipart/mixed; boundary="Apple-Mail=_CEF515E9-672A-4F33-97A2-2C7ADEA5C7AB" --Apple-Mail=_CEF515E9-672A-4F33-97A2-2C7ADEA5C7AB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Nov 15, 2021, at 7:50 PM, conover AT rahul DOT net (John = Conover) [via geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:

   http://www.johncon.com/john/archive/imm-6.tar.gz

which is the gEDA = sources.

Changing the = program names to the Lepton equivilents, all works fine,
except the Spice file, = schematic.cir, has only the power supply on the
top level, = schematic.sch.

Well, that=E2=80=99s a complete, complicated = project. Can you strip it down into a simple test case to ease = debugging? Something like:

= --Apple-Mail=_CEF515E9-672A-4F33-97A2-2C7ADEA5C7AB Content-Disposition: attachment; filename=sdbbug.sch Content-Type: application/octet-stream; x-unix-mode=0664; name="sdbbug.sch" Content-Transfer-Encoding: 7bit v 20210731 2 C -24500 64900 1 0 0 EMBEDDEDPVSS-1.sym [ B -24300 64900 800 800 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1 L -24300 65700 -23500 64900 3 0 0 0 -1 -1 L -24300 64900 -23500 65700 3 0 0 0 -1 -1 P -24500 65300 -24300 65300 1 0 0 { T -24500 65300 5 10 0 0 0 0 1 pinseq=1 T -24500 65300 5 10 0 0 0 0 1 pinnumber=1 T -24500 65300 5 10 0 0 0 0 1 pintype=pas T -24500 65300 5 10 0 0 0 0 1 pinlabel=A } P -23300 65300 -23500 65300 1 0 0 { T -23300 65300 5 10 0 0 0 6 1 pinseq=2 T -23405 65345 5 10 0 0 0 0 1 pinnumber=2 T -23300 65300 5 10 0 0 0 6 1 pintype=pas T -23555 65295 5 10 0 0 0 6 1 pinlabel=B } T -23900 65300 9 10 1 1 0 4 1 PVSS T -24300 65800 8 10 0 1 0 0 1 refdes=X? T -23000 66600 5 10 0 0 0 0 1 device=PVSS T -23000 66400 8 10 0 0 0 0 1 model-name=PVSS T -24400 66200 8 10 0 0 0 0 1 numslots=0 T -23000 66200 8 10 0 1 0 0 1 description=Analog negative rail T -24400 66000 8 10 0 1 0 0 1 documentation=http://research.kek.jp/people/ikeda/openIP T -24400 66800 8 10 0 0 0 0 1 symversion=1.0 T -24400 66600 8 10 0 1 0 0 1 author=jpd AT noqsi DOT com T -24400 66400 8 10 0 0 0 0 1 footprint=none T -24500 64900 8 10 0 0 0 0 1 dist-license=GPL T -24500 64900 8 10 0 0 0 0 1 use-license=unlimited ] { T -24300 65800 5 10 1 1 0 0 1 refdes=X1 T -23000 66600 5 10 0 0 0 0 1 device=PVSS T -23000 66400 5 10 0 0 0 0 1 model-name=PVSS T -24400 66800 5 10 0 0 0 0 1 symversion=1.0 T -24400 66400 5 10 0 0 0 0 1 footprint=none } C -24600 65000 1 0 0 gnd-1.sym N -23300 65300 -23100 65300 4 { T -23200 65400 5 10 1 1 0 0 1 netname=Vss } --Apple-Mail=_CEF515E9-672A-4F33-97A2-2C7ADEA5C7AB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

with a single, = embedded component.

Curiously, this = works fine in Lepton with spice-sdb, generating:

* = lepton-netlist -g spice-sdb sdbbug.sch -o = lepton-sdb.cir
*********************************************************
* Spice file generated by = lepton-netlist                = *
* = spice-sdb by SDB                =                     =   *
* = provides advanced spice netlisting capability.      =   *
* = Documentation at wiki.geda-project.org/geda:csygas    = *
*********************************************************
*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=   Begin SPICE netlist of main design =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D
X1 0 = Vss PVSS
.end

But, it = doesn=E2=80=99t work right in gnetlist: it loses the connections to = named nets!

* gnetlist -g spice-sdb -o geda-sdb.cir = sdbbug.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/   = *
*********************************************************
*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=   Begin SPICE netlist of main design =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D
X1 = unconnected_pin-1 unconnected_pin-2 PVSS
.end

Versions: 
gEDA 1.8.2 (g875406c), Ubuntu apt install
Lepton EDA/lepton-netlist = 1.9.16.20210731 (git: 13cbc49), compiled from git a few months = ago

John Doty    =           Noqsi = Aerospace, Ltd.

jpd AT noqsi DOT com




= --Apple-Mail=_CEF515E9-672A-4F33-97A2-2C7ADEA5C7AB-- --Apple-Mail=_7AFEEBA4-07E5-4B6D-961C-D8B413175865--