On Tue, Sep 30, 2008 at 3:57 PM, Ales Hvezda <[EMAIL PROTECTED]> wrote:
> Before I answer your questions, could you post the contents of
> nand-1.sym and 7400-slots.sym?  That will help me better formulate
> my answers to your questions.  Thanks,

I'm not at home so I can't re-double-check that I have them in my
repository, but for now:

$ cat symbols/abstract/nand-1.sym
v 20070708 1
L 300 200 300 800 3 0 0 0 -1 -1
L 300 800 700 800 3 0 0 0 -1 -1
T 1000 300 5 5 0 0 0 0 1
device=nand_gate
L 300 200 700 200 3 0 0 0 -1 -1
A 700 500 300 270 180 3 0 0 0 -1 -1
V 1050 500 50 6 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
P 1100 500 1300 500 1 0 1
{
T 1100 550 5 8 1 1 0 0 1
pinnumber=?
T 1100 500 5 5 0 1 0 2 1
pinfunction=output
T 950 500 5 5 0 1 0 8 1
pintype=out
}
P 300 300 0 300 1 0 1
{
T 200 350 5 8 1 1 0 6 1
pinnumber=?
T 200 300 5 5 0 1 0 2 1
pinfunction=B
T 350 300 5 5 0 1 0 2 1
pintype=in
}
P 300 700 0 700 1 0 1
{
T 200 750 5 8 1 1 0 6 1
pinnumber=?
T 200 700 5 5 0 1 0 2 1
pinfunction=A
T 350 700 5 5 0 1 0 2 1
pintype=in
}
T 350 500 8 10 1 1 0 1 1
part=?
T 400 900 8 10 1 1 0 0 1
refdes=U?
T 400 100 8 5 0 0 0 0 1
slotname=?
T 400 0 8 5 0 0 0 0 1
slotowner=?
T 1000 200 5 5 0 0 0 0 1
slotrewrite=refdes,part

$ cat symbols/74/7400-slots.sym
v 20080110 1
S
{
T 825 150 5 8 0 0 0 0 1
device=nand_gate
T 675 1050 5 10 0 0 0 0 1
slotmap=output=3,A=2,B=1
T 825 450 5 8 0 0 0 0 1
slotname=nand1
}
S
{
T 825 150 5 8 0 0 0 0 1
device=nand_gate
T 675 900 5 10 0 0 0 0 1
slotmap=output=6,A=4,B=5
T 825 450 5 8 0 0 0 0 1
slotname=nand2
}
S
{
T 825 150 5 8 0 0 0 0 1
device=nand_gate
T 675 750 5 10 0 0 0 0 1
slotmap=output=8,A=9,B=10
T 825 450 5 8 0 0 0 0 1
slotname=nand3
}
S
{
T 825 150 5 8 0 0 0 0 1
device=nand_gate
T 675 600 5 10 0 0 0 0 1
slotmap=output=11,A=12,B=13
T 825 450 5 8 0 0 0 0 1
slotname=nand4
}
S
{
T 825 150 5 8 0 0 0 0 1
device=power_load
T 675 600 5 10 0 0 0 0 1
slotmap=pos=14,neg=7
T 825 450 5 8 0 0 0 0 1
slotname=power
}
T 500 400 9 8 1 1 0 0 1
part=7400
T 500 200 8 10 1 1 0 0 1
refdes=U?
T 200 1050 8 10 0 1 0 0 1
graphical=1
T 500 1200 5 10 0 0 0 0 1
footprint=DIP14
T 500 1350 5 10 0 0 0 0 1
description=4 NAND gates with 2 inputs
T 500 1500 5 10 0 0 0 0 1
documentation=http://www-s.ti.com/sc/ds/sn74hc00.pdf
T 500 2800 9 10 0 0 0 0 1
device=7400
L 500 600 500 1500 3 0 0 0 -1 -1
L 800 1600 800 1000 3 0 0 0 -1 -1
L 800 1000 1200 1000 3 0 0 0 -1 -1
L 800 1600 1200 1600 3 0 0 0 -1 -1
A 1200 1300 300 270 180 3 0 0 0 -1 -1
L 500 1500 800 1500 3 0 0 0 -1 -1
L 800 1100 700 1100 3 0 0 0 -1 -1
L 700 1100 700 900 3 0 0 0 -1 -1
V 1550 1300 50 6 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
L 1600 1300 1700 1300 3 0 0 0 -1 -1
L 700 900 1100 900 3 0 0 0 -1 -1
L 1700 1300 1700 600 3 0 0 0 -1 -1
L 1100 900 1100 600 3 0 0 0 -1 -1
L 2300 600 2300 1500 3 0 0 0 -1 -1
L 2600 1600 2600 1000 3 0 0 0 -1 -1
L 2600 1000 3000 1000 3 0 0 0 -1 -1
L 2600 1600 3000 1600 3 0 0 0 -1 -1
A 3000 1300 300 270 180 3 0 0 0 -1 -1
L 2300 1500 2600 1500 3 0 0 0 -1 -1
L 2600 1100 2500 1100 3 0 0 0 -1 -1
L 2500 1100 2500 900 3 0 0 0 -1 -1
V 3350 1300 50 6 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
L 3400 1300 3500 1300 3 0 0 0 -1 -1
L 2500 900 2900 900 3 0 0 0 -1 -1
L 3500 1300 3500 600 3 0 0 0 -1 -1
L 2900 900 2900 600 3 0 0 0 -1 -1
L 1100 2700 1100 1800 3 0 0 0 -1 -1
L 1400 1700 1400 2300 3 0 0 0 -1 -1
L 1400 2300 1800 2300 3 0 0 0 -1 -1
L 1400 1700 1800 1700 3 0 0 0 -1 -1
A 1800 2000 300 270 180 3 0 0 0 -1 -1
L 1100 1800 1400 1800 3 0 0 0 -1 -1
L 1400 2200 1300 2200 3 0 0 0 -1 -1
L 1300 2200 1300 2400 3 0 0 0 -1 -1
V 2150 2000 50 6 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
L 2200 2000 2300 2000 3 0 0 0 -1 -1
L 1300 2400 1700 2400 3 0 0 0 -1 -1
L 2300 2000 2300 2700 3 0 0 0 -1 -1
L 1700 2400 1700 2700 3 0 0 0 -1 -1
L 2900 2700 2900 1800 3 0 0 0 -1 -1
L 3200 1700 3200 2300 3 0 0 0 -1 -1
L 3200 2300 3600 2300 3 0 0 0 -1 -1
L 3200 1700 3600 1700 3 0 0 0 -1 -1
A 3600 2000 300 270 180 3 0 0 0 -1 -1
L 2900 1800 3200 1800 3 0 0 0 -1 -1
L 3200 2200 3100 2200 3 0 0 0 -1 -1
L 3100 2200 3100 2400 3 0 0 0 -1 -1
V 3950 2000 50 6 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
L 4000 2000 4100 2000 3 0 0 0 -1 -1
L 3100 2400 3500 2400 3 0 0 0 -1 -1
L 4100 2000 4100 2700 3 0 0 0 -1 -1
L 3500 2400 3500 2700 3 0 0 0 -1 -1
T 500 2400 9 10 1 0 90 6 1
Vcc
T 4100 900 9 10 1 0 90 1 1
Gnd
B 300 800 4000 1700 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
L 500 2500 500 2700 3 0 0 0 -1 -1
L 4100 800 4100 600 3 0 0 0 -1 -1

Most of the lines are eye candy but the attributes special to the branch are:
  device: used to determine if a symbol is "compatible" with a part's
slot (example, not special case)
  pinnumber: gets rewritten
  pinfunction: used as key into function->pin number map
  slotname, slotowner: determines slot/symbol linkage
  slotrewrite: names "magic" attribs that get "inherited" from the heavy part
  slotmap: defines function->pin number map


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to