Mail Archives: geda-user/2018/01/06/10:55:26
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
- Raw text -