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 Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: multipart/alternative; boundary=Apple-Mail-24--1065627795 Subject: Re: [geda-user] gnetlist hierarchy uref order setting Date: Fri, 4 Jan 2013 17:36:17 -0700 In-Reply-To: To: geda-user AT delorie DOT com References: 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 Precedence: bulk --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
Hi all,

I'm using gschem/gnetlist for creating = hierarchical circuits that I simulate with ngSPICE. I have the three = questions:

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? =

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


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.


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.c= om/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.


Best Regards,
~Abhijit K


John Doty              Noqsi = Aerospace, Ltd.

http://www.noqsi.com/

jpd AT noqsi DOT com



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