delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/04/25/17:53: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.7.2 01/07/2005 (debian 1:2.7.2-18) with nmh-1.3
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: geda
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Make multiple pins auto-numbered in gschem
In-reply-to: <CAN0Jx-_9iqKMkSa5EgJpXH9O6ZFUUyEPj3wGNE2PR8XmzeefuQ@mail.gmail.com>
References: <CAAVSQ3uasWwmkVfJLoCQDHeziGGQcc5jcXr+QRZo0RxRofoZjg AT mail DOT gmail DOT com> <20111217222833 DOT 1F99881FD929 AT turkos DOT aspodata DOT se> <CAAVSQ3sqpOdbbP2f1mAxdpfGHunTYBgfHuPf8UtrGiLaBm2-mw AT mail DOT gmail DOT com> <20111218194622 DOT 5FFDB81FD937 AT turkos DOT aspodata DOT se> <4EEE6884 DOT 20408 AT ecosensory DOT com> <CAN0Jx-_NKQZ-U=-eSWFOvjnWCPLyxEsGryoCQa7wfu03Ah_n3Q AT mail DOT gmail DOT com> <CAAVSQ3vk84cAHgiwaEp3dOFF_-qNF6d5AwV0Kkvyuq=u+7w_VA AT mail DOT gmail DOT com> <CAN0Jx-_9iqKMkSa5EgJpXH9O6ZFUUyEPj3wGNE2PR8XmzeefuQ AT mail DOT gmail DOT com>
Comments: In-reply-to Russell Dill <Russ DOT Dill AT asu DOT edu>
message dated "Mon, 19 Dec 2011 18:44:19 -0700."
Mime-Version: 1.0
Message-Id: <20120425213315.7366B814784A@turkos.aspodata.se>
Date: Wed, 25 Apr 2012 23:33:14 +0200 (CEST)
From: karl AT aspodata DOT se (Karl Hammar)
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

This is a multipart MIME message.

--==_Exmh_1335389396_23220
Content-Type: text/plain; charset="iso-8859-1"

Russel Dill:
> For a long term solution, it'd be really great if gschem could just
> parse these and make a basic djboxsym file:
> 
> http://www.atmel.com/dyn/resources/prod_documents/megaAVR_IBIS.zip
> 
> (see [Pin] under m04_tqfp32_dm_dp_avrusb16k_5v.ibs and m482m32.ibs)

If I do:

$ wget http://www.st.com/internet/com/SOFTWARE_RESOURCES/HW_MODEL/IBIS_MODEL/stm32f2_ibis.zip
$ unzip stm32f2_ibis.zip
Archive:  stm32f2_ibis.zip
  inflating: stm32f2_lqfp100.ibs     
  inflating: stm32f2_lqfp144.ibs     
  inflating: stm32f2_lqfp176.ibs     
  inflating: stm32f2_lqfp64.ibs      
  inflating: stm32f2_ufbga176.ibs    
  inflating: stm32f2_wlcsp64.ibs     
$ ~/git/openhw/share/ibis.pl stm32f2_lqfp100.ibs | head
Component: STM32F2_LQFP100
1 PE2
2 PE3
3 PE4
4 PE5
5 PE6
6 VBAT
7 PC13
8 PC14
9 PC15
$

///

So I'm wondering how to make that to a .sym file.

What is the best way, djboxsym, tragesym or something else?

Regards,
/Karl Hammar



--==_Exmh_1335389396_23220
Content-Type: text/x-perl ; name="ibis.pl"
Content-Description: ibis.pl
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="ibis.pl"

#!/usr/bin/perl -w

use strict;

my $lbl =3D "";
my $first =3D "";
my $cnt =3D 0;

while (<>) {
    tr/ \t/ /s;
    if (m/^\[([a-z ]+)\] (.*)/i) {
	$lbl =3D $1;
	$first =3D $2;
	$cnt =3D 0;
	#print "$1\n\t$2\n";
    }

    if ($lbl eq "Component") {
	print "$lbl: $first\n";
	next;
    }
    if ($lbl eq "Pin") {
	s/^\|//;
	next if m/^$/;
	my @fld =3D split;
	my $str =3D "$fld[0] $fld[1]\n";
	if ($cnt !=3D 0) { print $str; }
	$cnt++;
	next;
    }
}
--==_Exmh_1335389396_23220--


- Raw text -


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