Some integrated circuits provide several identical and interchangeable devices in a single package. The classic “4000” series of logic devices is a good example of this; for example, each 4001 package contains four 2-input NOR gates. gschem and gnetlist provide support for working with these by using slots.
Detailed information on slotting attributes can be found in the Master Attributes List.
gnetlist uses several symbol attributes to enable slotting. All must be present for gnetlist to process a slotted component correctly.
pinseq=
” attribute and a ”pinnumber=
” attribute.numslots=
” attribute indicates how many slots a component has.slotdef=
” attribute for each slot. This contains information about the pin numbers of the pins associated with each slot.slot=
” attribute attached to each component in the schematic indicates which particular slot to use.
When processing a slotted component, gnetlist first looks for a ”slotdef=
” attribute matching the value of the ”slot=
” attribute. It uses the value of the ”slotdef=
” attribute to renumber the pins for the correct slot. It then merges the component with other components with the same “refdes”.