Mail Archives: geda-user/2024/04/26/12:41:50
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 -