www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2024/04/25/14:53:02

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=psjt.org;
s=psjt01; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:
Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
List-Post:List-Owner:List-Archive;
bh=/m/ycgaJvERPBpgu8DqTTl7TR2C/s4qeGtsOSq64ZOU=; b=t1yAq9Xgo7sxtAM54/y2ahHGNn
cJOM0jvFpVgnprjwfGKSZN3/68Hj5TxpqoKJ8hJGc0nG61gCkh64dFJgb9GUgHqqXuUkV42hXMIBL
rLwWEtZyX/mMPEet7cdQsgelLvM33hq6XpaeYFft/SUIniVlM3zppnimW1ZEH7w7SaozciIVyyMny
Iuokw+k8cMY8SI6OMLdjiXhmC+woM4B/L18VWYeq5RNtw5YkypW3711AlzU3eTRSWEJZ+W8+uBxhK
Ui2q/3wcvTh5G71RL7X/RhyX4HG/aQg8UUAd0N92Op/dOhIovFqqbvNoRJj868qljEy2o8bMxJkfU
Dn0g+03Q==;
From: "=?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>
To: <geda-user AT delorie DOT com>
Subject: Re: [geda-user] lepton netlist
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>
Date: Thu, 25 Apr 2024 20:50:48 +0200
In-Reply-To: <20240424211535.2838281AB8A3@turkos.aspodata.se>
(geda-user AT delorie DOT com's message of "Wed, 24 Apr 2024 23:15:35 +0200
(CEST)")
Message-ID: <s6njzkl1dkn.fsf@psjt.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.91 (gnu/linux)
MIME-Version: 1.0
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

"karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
writes:

> Stephan:
> ...
>> >> My patch was doing simple text substitutions in attributes after the
>> >> hierarchy was built, so the parameters cannot effect the netlist
>> >> itself, just some output.  I used it only with value= attributes.  That
>> >> would be the minimal functionality.
>> >
>> > So, it would be the bom list and the like that would be affected ?
>> > In that case an external program could do the transform, so you do your
>> > usual stuff and then as a final step you modify some output files with a
>> > separate program. Would that be fine (at least till it is integrated 
>> > into lepton) ?
>> 
>> I extract my boms from the .pcb file, and usually there are a lot of
>> handwritten changes before it goes to a technician, so it is not
>> essential to have this functionally in the netlister.  When the bom now
>> says value=$R2 it is at least obvious where I need to add information :-)
> ...
>
> 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.

> ///
>
> My thoughts is more in line with
>
>  in a page
> C ... source_symbol.sym
> {
> T ...
> source=led_resistor
> input_voltage=12
> }
>
>  and its subpage
> C ... led.fp
> {
> T ...
> led_voltage=2
> led_current=0.020
> }
> C .... resistor.fp
> {
> T ...
> value=E6((input_voltage - led_voltage) / led_current)
> }
>
> where E6() chooses a nearest value in the E6 series, or
> if you like, the available values of som component serie.
>
> Also nice would it be if I could use units, like in
> led_current=20mA or at least 20m.
>
> I do have code for unit prefixes and E6 etc. in
> https://aspodata.se/git/openhw/bin/Prefix.pm
> https://aspodata.se/git/openhw/bin/Eseries.pm
>
> ///
>
>  Regarding bom's, I have 
> https://aspodata.se/git/openhw/bin/GnetBom2.pl
>  which converts lepton-netlist -g bom2 output file
>  to something like
>  (i.e. sorted by device, footprint, component value):
>
> Capacitor       ipc7351b_2012Ar.fp           1n             1 aC3
> Capacitor       ipc7351b_2012Ar.fp           10n            1 3C2
> Capacitor       ipc7351b_2012Ar.fp           15n 5%         8 t0C21 ...
> Capacitor       ipc7351b_2012Ar.fp           33n 5%         8 t0C11 ...
> Capacitor       ipc7351b_2012Ar.fp           100n          19 12C2 ...
> Capacitor       ipc7351b_2012Ar.fp           1u            10 12C1 ...
>
> Regards,
> /Karl Hammar
>

-- 
Stephan

- Raw text -


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