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 (debian 1:2.8.0~rc1-2) with nmh-1.5 X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: inbox From: karl AT aspodata DOT se To: geda-user AT delorie DOT com Subject: Re: [geda-user] why pinnumber in sym pins? In-reply-to: References: <20171226122009 DOT 366BF804CEDE AT turkos DOT aspodata DOT se> Comments: In-reply-to Roland Lutz message dated "Tue, 02 Jan 2018 20:30:49 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20180106155314.38132804CECC@turkos.aspodata.se> Date: Sat, 6 Jan 2018 16:53:14 +0100 (CET) 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 Precedence: bulk Roland: > On Tue, 26 Dec 2017, karl AT aspodata DOT se wrote: ... > > So, it would be nice if one could map sym -> fp with just the "pinlabel" > > (gschem) -> pin "Name" (pcb). But pcb doesn't seem to support that idea. > > In fact, the term "pinnumber" may be misleading because it doesn't need to > be a number. You could use "S", "G", and "D" as pinnumbers for a > transistor symbol, or "shield" as a pinnumber for a shield pin, and then > map that to a physical position via the footprint. Sorry, didn't know that. > > E.g. dc/dc converters with single output usually have four pins +/-Vin > > and +/-Vout in all sorts of packages where the pinnumber (from the > > datasheet) can be anything but 1,2,3,4, but their pin names are > > +/-Vin/Vout. > > > Any suggestions or pointers ? > > In this example, just use "+Vin", "-Vin" and so on (or some PCB-friendly > variant of that) as the pinnumbers. Ok, I get it and done some testing in http://turkos.aspodata.se/tmp/gEDA/pinnumber/ So, in a sym file (dcdc_isol.sym), a: P 300 200 0 200 1 0 1 { T 275 225 5 6 1 1 0 6 1 pinnumber=-Vin } gives the correct net: $ fgrep -e -Vin test.net 0V U1--Vin X1-1 U2--Vin $ where U1--Vin is matched by pcb to the second "-Vin" (the pins "number") in the fp: Pin [ 0.000mm 0.000mm 2.000mm 0.500mm 2.400mm 1.000mm "-Vin" "-Vin" "" ] giving me the correct ratsnet in test.pcb. /// That implies that I potentially need two fp for the same thing: , one with numbers, if I use numbers in the sym file . one with names, if I use names in the sym file Regards, /Karl Hammar ----------------------------------------------------------------------- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57