Mail Archives: geda-user/2017/09/12/11:02:13
pinnumber= and pinseq= are entirely different concepts.
Normally, you'd want to use the pinnumber= attribute; there's no reason to
add a pinseq= attribute unless you need it. The pinseq= attribute is only
used in two situations: slotted components and some simulation backends.
In a slotted component, each pin with a pinseq= attribute is assigned a
pinnumber= attribute from the slot definition. The original pinnumber=
attribute is ignored; in fact, there's no reason to add one in the first
place. The pinseq= attribute specifies which of the numbers in the slot
definition is used for this pin.
So, in your example, the correct attributes are:
Component:
slot=1
slotdef=1:1,10
slotdef=2:2,9
slotdef=3:3,8
slotdef=4:4,7
slotdef=5:5,6
First pin:
pinseq=1
(pintype and pinlabel as appropriate, if needed)
Second pin:
pinseq=2
(pintype and pinlabel as appropriate, if needed)
If you wanted, you could list the pins in the slot definition in reverse
order (10,1; 9,2; and so on) and swap the pinseq= attributes; this would
have the same effect.
- Raw text -