www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/11/16/15:33:42

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 <jpd AT noqsi DOT com>
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 15:32:15 -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>
<29531129-EE12-4368-816B-D77BB7767295 AT noqsi DOT com>
<20211116185926 DOT 1596 DOT qmail AT rahul DOT net>
To: "conover AT rahul DOT net (John Conover) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
In-Reply-To: <20211116185926.1596.qmail@rahul.net>
Message-Id: <1EA6519E-556C-4738-B621-E5E721900523@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

--Apple-Mail=_9787A370-4882-406D-8794-E28C8731589C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Short answer:

Make a file =E2=80=9Clepton.conf=E2=80=9D in the project directory, =
containing the lines:

[netlist.hierarchy]
traverse-hierarchy=3D0

Long answer:

You=E2=80=99ve mixed spice-style and layout-style hierarchy. =
Layout-style, with hierarchy traversal in the netlister using source=3D, =
connects pinlabel to refdes by name using symbols with device=3DINPUT or =
device=3DOUTPUT. Spice-style connects pinseq to refdes, in =
lexical/numeric ordering (P10 after P9), using device=3Dspice-IO . =
Spice-style is intended for separate netlisting of subcircuits, while =
layout style flattens out the netlist.

Spice-style has a few problems:

1. The pinseq attribute is overloaded, used also for slotting. This may =
cause conflicts.

2. The association of lexical/numerical ordering of symbol refdes with =
pinseq is confusing and error-prone.

3. It=E2=80=99s incompatible with flattening netlists for layout.

This is why I made spice-noqsi work properly in layout-style without =
flattening (traverse-hierarchy=3D0). You never need to use spice-style =
(although you may) with spice-noqsi.

> On Nov 16, 2021, at 1:59 PM, conover AT rahul DOT net (John Conover) [via =
geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
>=20
> John Doty writes:
>>=20
>>=20
>>> 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:
>>>=20
>>>   http://www.johncon.com/john/archive/imm-6.tar.gz =
<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.
>>=20
>> 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.
>>=20
>=20
> http://www.johncon.com/john/archive/toy.tar.gz
>=20
> 1 transistor, 1 R, 1 C, in 1 X, tape archive is about 4K.
>=20
>    John
>=20
> --=20
>=20
> John Conover, conover AT rahul DOT net, http://www.johncon.com/
>=20

John Doty              Noqsi Aerospace, Ltd.
jpd AT noqsi DOT com




--Apple-Mail=_9787A370-4882-406D-8794-E28C8731589C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Short=
 answer:<div class=3D""><br class=3D""></div><div class=3D"">Make a file =
=E2=80=9Clepton.conf=E2=80=9D in the project directory, containing the =
lines:</div><div class=3D""><br class=3D""></div><div class=3D""><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 10px; =
line-height: normal; font-family: Monaco; background-color: rgba(255, =
255, 255, 0.93);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">[netlist.hierarchy]</span></div><div =
style=3D"margin: 0px; font-stretch: normal; font-size: 10px; =
line-height: normal; font-family: Monaco; background-color: rgba(255, =
255, 255, 0.93);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">traverse-hierarchy=3D0</span></div><div =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""><br class=3D""></span></div><div>Long answer:</div><div><br =
class=3D""></div><div>You=E2=80=99ve mixed spice-style and layout-style =
hierarchy. Layout-style, with hierarchy traversal in the netlister using =
source=3D, connects pinlabel to refdes by name using symbols with =
device=3DINPUT or device=3DOUTPUT. Spice-style connects pinseq to =
refdes, in lexical/numeric ordering (P10 after P9), using =
device=3Dspice-IO . Spice-style is intended for separate netlisting of =
subcircuits, while layout style flattens out the netlist.</div><div><br =
class=3D""></div><div>Spice-style has a few problems:</div><div><br =
class=3D""></div><div>1. The pinseq attribute is overloaded, used also =
for slotting. This may cause conflicts.</div><div><br =
class=3D""></div><div>2. The association of lexical/numerical ordering =
of symbol refdes with pinseq is confusing and error-prone.</div><div><br =
class=3D""></div><div>3. It=E2=80=99s incompatible with flattening =
netlists for layout.</div><div><br class=3D""></div><div>This is why I =
made spice-noqsi work properly in layout-style without flattening =
(traverse-hierarchy=3D0). You never need to use spice-style (although =
you may) with spice-noqsi.</div><div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D"">On Nov 16, 2021, at 1:59 PM, <a =
href=3D"mailto:conover AT rahul DOT net" class=3D"">conover AT rahul DOT net</a> (John =
Conover) [via <a href=3D"mailto:geda-user AT delorie DOT com" =
class=3D"">geda-user AT delorie DOT com</a>] &lt;<a =
href=3D"mailto:geda-user AT delorie DOT com" =
class=3D"">geda-user AT delorie DOT com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">John =
Doty writes:<br class=3D""><blockquote type=3D"cite" class=3D""><br =
class=3D""><br class=3D""><blockquote type=3D"cite" class=3D"">On Nov =
15, 2021, at 7:50 PM, <a href=3D"mailto:conover AT rahul DOT net" =
class=3D"">conover AT rahul DOT net</a> (John Conover) [via <a =
href=3D"mailto:geda-user AT delorie DOT com" =
class=3D"">geda-user AT delorie DOT com</a>] &lt;<a =
href=3D"mailto:geda-user AT delorie DOT com" =
class=3D"">geda-user AT delorie DOT com</a>&gt; wrote:<br class=3D""><br =
class=3D""> &nbsp;&nbsp;<a =
href=3D"http://www.johncon.com/john/archive/imm-6.tar.gz" =
class=3D"">http://www.johncon.com/john/archive/imm-6.tar.gz</a> &lt;<a =
href=3D"http://www.johncon.com/john/archive/imm-6.tar.gz" =
class=3D"">http://www.johncon.com/john/archive/imm-6.tar.gz</a>&gt;<br =
class=3D""><br class=3D"">which is the gEDA sources.<br class=3D""><br =
class=3D"">Changing the program names to the Lepton equivilents, all =
works fine,<br class=3D"">except the Spice file, schematic.cir, has only =
the power supply on the<br class=3D"">top level, schematic.sch.<br =
class=3D""></blockquote><br class=3D"">Well, that=E2=80=99s a complete, =
complicated project. Can you strip it down into a simple test case to =
ease debugging? Something like:<br class=3D"">with a single, embedded =
component.<br class=3D""><br class=3D""></blockquote><br class=3D""><a =
href=3D"http://www.johncon.com/john/archive/toy.tar.gz" =
class=3D"">http://www.johncon.com/john/archive/toy.tar.gz</a><br =
class=3D""><br class=3D"">1 transistor, 1 R, 1 C, in 1 X, tape archive =
is about 4K.<br class=3D""><br class=3D""> &nbsp;&nbsp;&nbsp;John<br =
class=3D""><br class=3D"">-- <br class=3D""><br class=3D"">John Conover, =
conover AT rahul DOT net, http://www.johncon.com/<br class=3D""><br =
class=3D""></div></div></blockquote></div><br class=3D""><div class=3D"">
<span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px; font-variant-ligatures: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
line-height: normal;"><div style=3D"word-wrap: break-word;" =
class=3D""><span class=3D"Apple-style-span" style=3D"border-collapse: =
separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: =
normal; font-variant-caps: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; text-indent: 0px; text-transform: none; =
orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><p =
style=3D"margin: 0px;" class=3D""><font face=3D"Helvetica" size=3D"3" =
style=3D"font-style: normal; font-variant-caps: normal; font-weight: =
normal; font-size: 12px; line-height: normal; font-family: Helvetica;" =
class=3D"">John Doty<span class=3D"Apple-converted-space">&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span><span =
class=3D"Apple-converted-tab">&nbsp; &nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span></span>Noqsi =
Aerospace, Ltd.</font></p><p style=3D"margin: 0px;" class=3D""><a =
href=3D"mailto:jpd AT noqsi DOT com" class=3D"">jpd AT noqsi DOT com</a></p><br =
class=3D"Apple-interchange-newline"></span></div></span><br =
class=3D"Apple-interchange-newline">
</div>
<br class=3D""></div></body></html>=

--Apple-Mail=_9787A370-4882-406D-8794-E28C8731589C--

- Raw text -


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