[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: light to heavy symbol generator script



Hi all,


Here is my quick and easy hack to solve the transistor problem.

leva@jive:~/work/light2heavy$ cat npn.sym
#note that there are no pinnumber attributes

v 20070818 1
L 200 800 200 200 3 0 0 0 -1 -1
T 600 500 5 10 0 0 0 0 1
device=NPN_TRANSISTOR
P 0 500 200 500 1 0 0
{
T 100 550 5 6 0 0 0 0 1
pinseq=2
T 100 550 5 6 0 1 0 0 1
pinlabel=B
T 100 550 5 6 0 1 0 0 1
pintype=pas
}
P 500 1000 500 800 1 0 0
{
T 400 850 5 6 0 0 0 0 1
pinseq=1
T 400 850 5 6 0 1 0 0 1
pinlabel=C
T 400 850 5 6 0 1 0 0 1
pintype=pas
}
P 500 200 500 0 1 0 1
{
T 400 50 5 6 0 0 0 0 1
pinseq=3
T 400 50 5 6 0 1 0 0 1
pinlabel=E
T 400 50 5 6 0 1 0 0 1
pintype=pas
}
L 200 650 500 800 3 0 0 0 -1 -1
L 200 350 500 200 3 0 0 0 -1 -1
L 501 200 403 209 3 0 0 0 -1 -1
L 500 200 431 273 3 0 0 0 -1 -1
L 403 209 431 273 3 0 0 0 -1 -1
T 600 500 8 10 1 1 0 0 1
refdes=Q?

leva@jive:~/work/light2heavy$ cat bce.map 
# Test pinmap file
#
# format: <pinseq> <pinnumber>

1 2
2 1
3 3

leva@jive:~/work/light2heavy$ ./light2heavy.pl npn.sym bce.map >npn_bce.sym

leva@jive:~/work/light2heavy$ diff npn.sym npn_bce.sym 
8a9,10
> T 100 550 5 6 0 0 0 0 1
> pinnumber=1
17a20,21
> T 400 850 5 6 0 0 0 0 1
> pinnumber=2
26a31,32
> T 400 50 5 6 0 0 0 0 1
> pinnumber=3

The script can be downloaded from this URL:

http://web.interware.hu/lekovacs/cuccok/l2h/

--
Levente
http://web.interware.hu/lekovacs



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user