Mail Archives: geda-user/2017/09/13/07:09:32
On 12/09/17 16:00, Roland Lutz wrote:
> 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.
>
>
Thanks Roland, that now makes much more sense to me.
I could see that virtually all the information needed for a slotted
device was contained in the slotdef= attributes so I could not
understand why all the docs I have read on symbol creation state that
each pin MUST have pintype, pinnumber, pinlabel and pinseq attributes,
which is apparently just plain wrong according to your explanation.
Cheers
Barry
- Raw text -