delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/01/04/19:36:36

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
From: John Doty <jpd AT noqsi DOT com>
Mime-Version: 1.0 (Apple Message framework v1085)
Subject: Re: [geda-user] gnetlist hierarchy uref order setting
Date: Fri, 4 Jan 2013 17:36:17 -0700
In-Reply-To: <CACNnPRkowensyyy0pneO0VJeDaMpaMqms-74wCwM=Rtd-bDQHg@mail.gmail.com>
To: geda-user AT delorie DOT com
References: <CACNnPRkowensyyy0pneO0VJeDaMpaMqms-74wCwM=Rtd-bDQHg AT mail DOT gmail DOT com>
Message-Id: <644026BD-F6E6-4533-B450-A91CAF83937A@noqsi.com>
X-Mailer: Apple Mail (2.1085)
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-24--1065627795
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


On Jan 3, 2013, at 5:55 AM, Abhijit Kshirsagar wrote:

> Hi all,
>=20
> I'm using gschem/gnetlist for creating hierarchical circuits that I =
simulate with ngSPICE. I have the three questions:
>=20
> 1. I don't understand the append/prepend setting. =
(hierarchy-uref-order "append") or (hierarchy-uref-order "prepend")
> Append generates a refdes like U1/R2; and prepend generates R1/U1. =
shouldn't it be the other way around?=20

Well, I suppose it's intended to be like pathnames.

>=20
> 2. The default setting seems to be "append" for geda-gaf 1.6 and =
beyond - but was "prepend" earlier? I can't seem to find if it changed =
anywhere in the source code tree.

I don't think it has changed.

>=20
> 3. Why is "append" the default? To me "prepend" seems to make sense - =
at least for generating spice netlists.

Well, spice-sdb is supposed to fix the prefixes for SPICE. But my own =
approach is to turn hierarchy off in gnetlist. Put (hierarchy-traversal =
"disabled") in your gnetlistrc. Then I netlist subcircuits separately =
and let SPICE do the hierarchy expansion. See =
http://www.brorson.com/gEDA/SPICE/intro.html. Some SPICE dialects, =
including ngspice, have historically had trouble with memory leaks =
provoked by large flat netlists, and it's usually faster to let SPICE do =
the expansion.

>=20
> Best Regards,
> ~Abhijit K
>=20

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



--Apple-Mail-24--1065627795
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><br><div><div>On Jan 3, 2013, at 5:55 AM, Abhijit Kshirsagar =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite">Hi all,<br><br>I'm using gschem/gnetlist for creating =
hierarchical circuits that I simulate with ngSPICE. I have the three =
questions:<br><br>1. I don't understand the append/prepend setting. =
(hierarchy-uref-order "append") or (hierarchy-uref-order "prepend")<br>


Append generates a refdes like U1/R2; and prepend generates R1/U1. =
shouldn't it be the other way around? =
<br></blockquote><div><br></div>Well, I suppose it's intended to be like =
pathnames.</div><div><br><blockquote type=3D"cite">
<br>2. The default setting seems to be "append" for geda-gaf 1.6 and =
beyond - but was "prepend" earlier? I can't seem to find if it changed =
anywhere in the source code tree.<br></blockquote><div><br></div>I don't =
think it has changed.</div><div><br><blockquote type=3D"cite"><br>3. Why =
is "append" the default? To me "prepend" seems to make sense - at least =
for generating spice netlists.<br></blockquote><div><br></div>Well, =
spice-sdb is supposed to fix the prefixes for SPICE. But my own approach =
is to turn hierarchy off in gnetlist. Put&nbsp;(hierarchy-traversal =
"disabled") in your gnetlistrc. Then I netlist subcircuits separately =
and let SPICE do the hierarchy expansion. See&nbsp;<a =
href=3D"http://www.brorson.com/gEDA/SPICE/intro.html">http://www.brorson.c=
om/gEDA/SPICE/intro.html</a>. Some SPICE dialects, including ngspice, =
have historically had trouble with memory leaks provoked by large flat =
netlists, and it's usually faster to let SPICE do the =
expansion.</div><div><br><blockquote type=3D"cite">


<br>Best Regards,<br>~Abhijit K<br><br>
</blockquote></div><br><div>
<span class=3D"Apple-style-span" style=3D"font-size: 12px; "><p =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica">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: 0.0px 0.0px 0.0px =
0.0px"><a href=3D"http://www.noqsi.com/">http://www.noqsi.com/</a></p><p =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica"><a =
href=3D"mailto:jpd AT noqsi DOT com">jpd AT noqsi DOT com</a></font></p><br =
class=3D"Apple-interchange-newline"></span>
</div>
<br></body></html>=

--Apple-Mail-24--1065627795--

- Raw text -


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