[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-dev: idea for power pins



OK, here's proof of concept for a file-driven version of DJ's idea.

pins2gsch.awk



This script converts a file of (refdes pinnumber netname) triples  
into a pseudo-schematic. The pseudo-schematic contains no graphics  
(except some informational text boilerplate), only attributes.  
Useless with gschem, but gnetlist handles it just fine.

As a test case, I added power connections to a microphone:

# Process this file with pins2gsch.awk

#refdes		pinnumber	netname
MIC1		3		PWR
MIC1		4		GND

telephone.sch



To see it in action, try:

awk -f pins2gsch.awk telephone-pwr.txt > telephone-pwr.psch
gnetlist -g geda telephone.sch telephone-pwr.psch
cat output.net

Restrictions:

1. Could use some error checks.

2. It can run into the "split symbol attribute" bug. If you try:

gnetlist -g geda telephone-pwr.psch telephone.sch

(file order reversed from previous) it loses the device= attribute  
from the microphone.

3. It won't work with pinseq-driven netlisting (SPICE).

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd@noqsi.com




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