Mail Archives: geda-user/2015/06/29/20:28:30
--Apple-Mail=_397048A9-C53D-49DC-B71C-44E09B049659
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=windows-1252
On Jun 29, 2015, at 5:59 PM, Evan Foss (evanfoss AT gmail DOT com) =
<geda-user AT delorie DOT com> wrote:
> It would be nice to change the way PCB takes data in. I like the
> netlist handling but something more CSV or tab delineated would be
> nice for the rest of the stuff.
>=20
Nothing whatever to do with PCB, but I do sometimes find a TSV netlist =
useful. Here=92s a gnetlist back end that makes a TSV:
--Apple-Mail=_397048A9-C53D-49DC-B71C-44E09B049659
Content-Disposition: attachment;
filename=gnet-tsv.scm
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="gnet-tsv.scm"
Content-Transfer-Encoding: 7bit
;;; gEDA - GPL Electronic Design Automation
;;; gnetlist back end for making .tsv relational netlists
;;; Copyright (C) 2014-2015 John P. Doty
;;;
;;; This program is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 2 of the License, or
;;; (at your option) any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with this program; if not, write to the Free Software
;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
;; generate a netlist in
;; refdes pin net device
;; TSV format
(define (tsv filename)
(set-current-output-port (open-output-file filename))
(for-each do-net all-unique-nets))
(define (do-net net)
(for-each
(lambda (c)
(format #t "~A\t~A\t~A\t~A\n"
(car c) ; refdes
(cadr c) ; pin number
net
(gnetlist:get-package-attribute (car c) "device")))
(gnetlist:get-all-connections net)))
--Apple-Mail=_397048A9-C53D-49DC-B71C-44E09B049659
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=us-ascii
John Doty Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com
--Apple-Mail=_397048A9-C53D-49DC-B71C-44E09B049659--
- Raw text -