delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2024/04/26/12:41:50

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] lepton netlist
In-reply-to: <s6njzkl1dkn.fsf@psjt.org>
References: <s6nil076f0t DOT fsf AT psjt DOT org> <20240424112803 DOT C0DAC81AB8A3 AT turkos DOT aspodata DOT se> <s6njzknc4rc DOT fsf AT psjt DOT org> <20240424134027 DOT DA8B681AB8A3 AT turkos DOT aspodata DOT se> <s6n8r12d6le DOT fsf AT psjt DOT org> <20240424211535 DOT 2838281AB8A3 AT turkos DOT aspodata DOT se> <s6njzkl1dkn DOT fsf AT psjt DOT org>
Comments: In-reply-to "=?utf-8?Q?Stephan_B=C3=B6ttcher?= (geda AT psjt DOT org) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
message dated "Thu, 25 Apr 2024 20:50:48 +0200."
Mime-Version: 1.0
Message-Id: <20240426163846.7FF8481AB8A3@turkos.aspodata.se>
Date: Fri, 26 Apr 2024 18:38:46 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
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

Stephan:
...
> > Soo, what do you use the substitution for ?
> 
> My boards often have a large number of instances of the same circuit,
> with different gain configurations that are configured with parameter
> attributes attached to the subschematics symbol instances to change some
> resistor values.
>
> And I have schematics in my big monorepro that are reused a lot across
> different boards with some parameters.  For example, low noise
> adjustable LDO regulators.
...

I think treating "floating" attributes withing the source symbols as 
parameters to a function, with the subpage as the "function", as 
something to aim for. I don't think thoose attributes should be 
available to a subsubpage, since you could easily insert that in the 
source symbol.

How to use thoose attributes from the "above" page ?
One way would be like a "$" before the attribute like in your
value=$RD1, och way would be to use something like value=: RD1
where the ":" would indicate that this should be evaluated, not be 
treated like a string constant, like the difference in shell between
$HOME vs. '$HOME'.

///

So, I propose that source syms local floating attributes are available 
to the sub page.

attributes attr=value are treated as before, and attr=:expression are
evaluated in some vay to be decided later but they are evaluated in 
file order or possible in some x/y position order.

///

The first thing to do is find out how to export/import attributes 
between the source symbol and its subpage.

Any help or pointers is appreciated.

Regards,
/Karl Hammar

- Raw text -


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