Mail Archives: geda-user/2016/01/08/02:15:46
http://www.delorie.com/pcb/gnet-pcbfwd-bus.scm
This is a replacement for gnet-pcbfwd.scm which PCB's File->Import uses.
(If the scheme coding itself bothers you, you may use that as an
argument in the scheme debate - whether for or against is up to you.
Keep in mind this took me many nights to figure out :-))
It expands lists in netnames and pin numbers like this:
4-7 becomes 4,5,6,7
7-4 becomes 7,6,5,4
-then-
sym[1,2,3] becomes sym1,sym2,sym3
-then-
assignments between lists of netnames to lists of pinnumbers are
matched up one-to-one.
assignments between one netname and a list of pinnumbers are matched
up one-to-many.
Likewise for pin numbers and pin labels.
The net result of this is that you can assign a net named "nBL,A[8-2]" to
a pin labelled "A[0-7]" and numbered "1-4,10-7" and they'll all get
hooked up as appropriate.
You can also have a pin named "GND" and numbered "1,15,18" connected
to net "GND" and it will connect all three pins to the one net.
Constructive feedback welcome!
DJ
- Raw text -