delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/07/23/16:42:17

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
From: geda AT psjt DOT org (Stephan =?utf-8?Q?B=C3=B6ttcher?=)
To: Roland Lutz <rlutz AT hedmen DOT org>
Cc: geda-user AT delorie DOT com
Subject: Re: [geda-user] Parameter substitution
References: <98D1C4E4-581D-4A03-94E4-E0330960EADF AT wellesley DOT edu>
<s6na8h89ydi DOT fsf AT blaulicht DOT dmz DOT brux>
<alpine DOT DEB DOT 2 DOT 11 DOT 1607231941050 DOT 16188 AT nimbus>
Date: Sat, 23 Jul 2016 22:40:15 +0200
In-Reply-To: <alpine.DEB.2.11.1607231941050.16188@nimbus> (Roland Lutz's
message of "Sat, 23 Jul 2016 19:41:45 +0200 (CEST)")
Message-ID: <s6n8tws1428.fsf@blaulicht.dmz.brux>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u6NKemNm028244
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

Roland Lutz <rlutz AT hedmen DOT org> writes:

> On Sat, 23 Jul 2016, Stephan Böttcher wrote:
>> There is a patch I submitted a long time ago to gnetlist, implementing
>> functionality that I depend on, but that was never looked at by anybody.
>> This is very discouraging, when it comes to invest time for coding.
>
> Do you mean the patch for parameter substitution[1,2]?  I'd guess
> that, since that's quite a relevant change, the developers didn't want
> to just apply it without prior discussion.
>
> I had a quick glance at the patch, and it seems what you have been
> doing is roughly equivalent to the parameter substitution patch I
> submitted a while ago in the experimental netlister feature branch[3].

This is your xorn netlister, right?

Well, I do not see me diverting resources or attention from mainline gaf
or pcb anytime soon.  Those alternatives/branches do not align with my
needs.  I see these just divide the resources of geda for things I do
not care about.

This one feature you solved was solved by myself for gnetlist.  No big
incentive to switch to a new netlister.

> I just rebased that branch to the current HEAD and pushed it as
> "home/rlutz/experimental" to the geda-gaf repository, so you can use
> it right now by using that branch and setting
>
>   (set! use-new-frontend #t)
>
> in your gnetlistrc file.  The user-visible differences to your patch
> are that substitution values are defined with "subst=NAME=value" and
> referenced with "$(NAME)".

If the consensus is that your syntax is preferable, I will change
my patch, initially to accept both forms.

 $(NAME)               Makefile, which also supports ${NAME}

 $NAME or ${NAME}      #!/bin/sh

 subst=NAME=VALUE      = twice.  

 parameter=NAME:VALUE  We have "net=NAME:PIN".  My syntax was
                       guided by that.

But this is only syntax.  I understood that the semantics shall be
discussed, before a patch like this could be considered.  No such
discussion evolved.  In 2012 there was nobody available to discuss.  The
only response was: put it into the launchpad buftracker.  It was sitting
there ever since.

Anyhow, I used the feature on three board designs that fly to the sun in
two years.  One board with 30 copies of a shaper/ADC driver/ADC, with
different gains in the shapers that were set with parameter=
substitution.  Two preamp boards with 8 and 12 preamps, again with
different gains set by parameters.  My BOMs were exported from PCB and
had all the right parts values, but there is only one preamp and one
shaper schematic page.  Now, how about true hierarchical PCB layout?

Stephan

> Roland
>
>
> [1] http://www.ieap.uni-kiel.de/et/people/stephan/rpirena/gnetlist-parameters.patch
> [2] https://bugs.launchpad.net/geda/+bug/911440
> [3] http://article.gmane.org/gmane.comp.cad.geda.user/47097/

-- 
Stephan

- Raw text -


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