Mail Archives: geda-help/2017/08/28/19:01:37
Graham:
...
> The devices in the package do not have to be identical.
From http://wiki.geda-project.org/geda:gschem_ug:slots
Some integrated circuits provide several identical and interchangeable
devices in a single package. gschem and gnetlist provide support for
working with these by using components with slots.
Soo, the sloting capability is intended for "identical and
interchangeable" devices. Using it for other things isn't supported.
> In this case, one
> might place the actuating (coil) part of a relay in a completely different
> part of a drawing, instead of "forcibly attached" to the contacts part of
> the symbol. Two different symbols, forced together on the same footprint by
> the fact they have the same refdes, but a separate slot.
In your contact symbol, you have theese slot related attributes:
$ grep slot relay-40.61-contact.sym
numslots=2
slot=2
slotdef=2:11,21,14,24,12,22
$
http://wiki.geda-project.org/geda:master_attributes_list#numslots
says that numslots "is the number of slots that are in a physical
device". You say that you have "2" slots in the symbol/device, but you
are only defining slot number 2, where do you define slot number 1 ?
If you have package with dissimilar devices in it, you don't use
slots, you simply use two or more different symbols and use the same
refdes for them -- or you use a single symbol containing everything in
it.
Example, identical devices, 7400, four AND gates:
$ grep slot /usr/share/gEDA/sym/74/7400-1.sym
slot=1
numslots=4
slotdef=1:1,2,3
slotdef=2:4,5,6
slotdef=3:9,10,8
slotdef=4:12,13,11
$
numslots=4, i.e. the chip has four identical devices, the first one is
connected to pin 1, 2, and 3; the 2:nd to pin 4, 5, and 6, etc.
the power pins are not shown, but defined by:
$ grep net /usr/share/gEDA/sym/74/7400-1.sym
net=Vcc:14
net=GND:7
Example, one device with different parts, a mcu, stm32f105 or 107:
All pins:
http://aspodata.se/git/openhw/share/gschem/mcu/stm32f107.square.LQFP100.sym
Or a multiple symbols with same refdes:
http://aspodata.se/git/openhw/share/gschem/mcu/stm32f107.syspwr.LQFP100.sym
http://aspodata.se/git/openhw/share/gschem/mcu/stm32f107.uarts.LQFP100.sym
http://aspodata.se/git/openhw/share/gschem/mcu/stm32f107.pa.LQFP100.sym
...
> In your example, because there is only one pin in the symbol, although four
> physical pins on the package, I take it that is why there is only one
> pinseq=1.
For pinseq, have a look at:
http://wiki.geda-project.org/geda:master_attributes_list#pinseq
For a symbol with just one pin, it should have pinseq=1; a symbol with
two pins, the pins should have pinseq=1 and pinseq=2; etc.
> The other thing I need to understand properly is slotdef.
> I guessed at slotdef=2: 11,21,14,24,12,22 because that was the (strange)
> pin names in the order they appear on the package. It was just a blind
> guess, and maybe order is not important, but it seemed to work.
Take a look at the 7400 example, include a few in a test design, and
then change the slot attribute with Edit->slot.
Compare their pin numbers.
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
- Raw text -