delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/01/04/18:45:05

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: geda-user AT delorie DOT com
From: Peter TB Brett <peter AT peter-b DOT co DOT uk>
Subject: Re: [geda-user] gnetlist hierarchy uref order setting
Date: Fri, 04 Jan 2013 23:42:30 +0000
Lines: 35
Message-ID: <87k3rs4is9.fsf@harrington.peter-b.co.uk>
References: <CACNnPRkowensyyy0pneO0VJeDaMpaMqms-74wCwM=Rtd-bDQHg AT mail DOT gmail DOT com>
Mime-Version: 1.0
X-Complaints-To: usenet AT ger DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: cpc4-oxfd23-2-0-cust628.4-3.cable.virginmedia.com
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)
Cancel-Lock: sha1:h0C3Hnoh92zyGlX6bIHdENGxcEk=
Reply-To: geda-user AT delorie DOT com

Abhijit Kshirsagar <abhijit86k AT gmail DOT com>
writes:

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

Possibly.  TBH, the way round it was defined seems to me to have been
chosen arbitrarily (i.e. both are arguably correct). But it can't be
changed now.

> 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 have absolutely no idea, sorry.

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

Because historical reasons, and also because "append" makes much more
sense for PCB users.  It's not harming anyone to have it the way round
it is, and there's no point in causing *pointless* churn for users (I'm
prepared to accept churn for non-cosmetic reasons).

                          Peter

-- 
Peter Brett <peter AT peter-b DOT co DOT uk>
Remote Sensing Research Group
Surrey Space Centre

- Raw text -


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