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=_9787A370-4882-406D-8794-E28C8731589C" 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]" 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 Precedence: bulk --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] 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] 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. >>=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 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:

John = Doty writes:


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 <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:
with a single, embedded = component.


http://www.johncon.com/john/archive/toy.tar.gz

1 transistor, 1 R, 1 C, in 1 X, tape archive = is about 4K.

   John

--

John Conover, = conover AT rahul DOT net, http://www.johncon.com/


John Doty    =           Noqsi = Aerospace, Ltd.

jpd AT noqsi DOT com




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