Mail Archives: geda-user/2016/01/16/14:05:30
--Apple-Mail=_1D5E5C5F-54CE-40A4-9492-816E48A5559F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=windows-1252
Been playing around with this as a general-purpose plug in for more than =
just a subset of gpcb flows. Difficulties:
1. For netlists flattened by gnetlist, we have a configurable syntax for =
net renaming before the Scheme stuff gets the data. The bus syntax here =
will have some difficulty with that.
2. For genuinely hierarchical netlists, there=92s probably not a single =
one-size-fits-all plug in solution. Not today.
3. For pinseq-centered netlisting (SPICE), it needs to expand pinseqs, =
too.
Another issue is that =93-=93 seems a little strange as a range token. =
=93:=94 would match Verilog and some programming languages for more user =
familiarity.
I suggest using Dirac-style angle brackets to designate a bus =
definition, so a typical example might be "<nBL,A[8:2]>=94. While I =
think a sufficiently aware gnetlist plugin could navigate this without =
the extra tokens, we=92ve historically exploited the transparency of our =
formats to process schematics with other tools as well. The extra tokens =
will help.
On Jan 8, 2016, at 12:14 AM, DJ Delorie <dj AT delorie DOT com> wrote:
>=20
> http://www.delorie.com/pcb/gnet-pcbfwd-bus.scm
>=20
> This is a replacement for gnet-pcbfwd.scm which PCB's File->Import =
uses.
>=20
> (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 :-))
>=20
> It expands lists in netnames and pin numbers like this:
>=20
> 4-7 becomes 4,5,6,7
> 7-4 becomes 7,6,5,4
>=20
> -then-
>=20
> sym[1,2,3] becomes sym1,sym2,sym3
>=20
> -then-
>=20
> assignments between lists of netnames to lists of pinnumbers are
> matched up one-to-one.
>=20
> assignments between one netname and a list of pinnumbers are matched
> up one-to-many.
>=20
> Likewise for pin numbers and pin labels.
>=20
> 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.
>=20
> 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.
>=20
>=20
> Constructive feedback welcome!
>=20
> DJ
>=20
John Doty Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com
--Apple-Mail=_1D5E5C5F-54CE-40A4-9492-816E48A5559F
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iQIcBAEBCgAGBQJWmpQQAAoJEF1Aj/0UKykRxiYP/iPAKiPy7V6yF5SVSkqfSPWw
/BAeYBRqpjT2BWhiqi/Z8vB+iVpavK9W8rTNg8vqpfQuhKlq/7029ASXzCoTra8T
Utmi/8kRBkoHP/jQZ40XoAiWk/hdDc89pLES6X16YzmNzQ2+fpQzsPPZc8ntGCe0
PUCNa3Rpxdi+OG5l8AwfyPC+vOSqEpbwWC8FOH8MYKGEfXgAFiXNmlSjJoij1bAf
Q/LxGe1JkguxL2gHDDH6xQVqpkWcikK7EabSwmsg9mm7MSEe6olb51YQN3xQdNqs
QzgbVS0tOzarekpmymMoJrJPLIIjUly7GKUhIsv2Emr+r2qFe7DQ6qB+WkMD8gLB
eYRvhTcFldenq17z5tcs8IrW1it9eOo/O5RkEDY/x6tc0lnpZzjY5pF+WLydl8H3
vJoT5FrTLS5JZrnrZO/TcDGH0TCL0k3soDpkRl9Vjlz7xgNAOxhG1SvE2sLBXGsf
LVXJO4aoOFtUeG6uBs8OvyHbwQZtgKktmk6gQSRmZgGpBtUlyJePkelifdK6hHmI
HKsRebr5Dv6O47d7A/kqZIszM5IeD345F74MB1hsKq2OO02GKN72ITUp1PBciQjB
90odexaWOYv7mhiaJs7lynzypQYLA4SQiH+pLnyWAUUp0Ze3j3cyFeeiW97I7tzr
GXO5CEg9WSQRHsIpNt/4
=PEfE
-----END PGP SIGNATURE-----
--Apple-Mail=_1D5E5C5F-54CE-40A4-9492-816E48A5559F--
- Raw text -