delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/08/02:15:46

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
Date: Fri, 8 Jan 2016 02:14:45 -0500
Message-Id: <201601080714.u087Ejj5032766@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: [geda-user] first attempt at bus support in gnetlist for pcb
Reply-To: geda-user AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019