Mail Archives: geda-user/2015/06/29/21:34:08
--Apple-Mail=_4B3A2921-2F18-460B-A594-CC0C113B6C5D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=iso-8859-1
On Jun 28, 2015, at 1:03 PM, Hannu Vuolasaho (vuokko AT msn DOT com) =
<geda-user AT delorie DOT com> wrote:
>=20
>=20
>>=20
>> I am happy that there are no new releases of gschem stuffed with new
>> features - for me, gschem is complete.
>=20
> One thing is missing. Draw schematics. -> convert to symbol and use as =
block. Doing schematics nicely in hierarchical way is still a lot of =
hand work.
>=20
> Take those ports and shovel in to djboxsym definition file would be =
enough for me.
Quickie alpha version of a gnetlist back end to do that:
--Apple-Mail=_4B3A2921-2F18-460B-A594-CC0C113B6C5D
Content-Disposition: attachment;
filename=gnet-djboxsym.scm
Content-Type: application/octet-stream;
name="gnet-djboxsym.scm"
Content-Transfer-Encoding: 7bit
;;; gEDA - GPL Electronic Design Automation
;;; gnetlist back end for making hierarchical symbols
;;; Copyright (C) 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.
; Make a djboxsym file with INPUT and OUTPUT as pins
(define (djboxsym filename)
(set-current-output-port(open-output-file filename))
(format #t "
# djboxsym symdef generated by gnet-djboxsym
[labels]
refdes=X?
device=hierarchical_subcircuit
")
(for-each put-source (sources))
(format #t "
[left]
")
(for-each put-io (packages-by-device "INPUT"))
(format #t "
[right]
")
(for-each put-io (packages-by-device "OUTPUT")))
(define (packages-by-device device)
(filter (lambda (package) (string=? device
(gnetlist:get-package-attribute package "device"))) packages)
)
(define pinnumber 0)
(define (new-pinnumber) (set! pinnumber (+ pinnumber 1)) pinnumber)
(define (put-io package)
(format #t "~A ~A\n" (new-pinnumber)
(gnetlist:get-package-attribute package "refdes")))
(define (sources) (filter (lambda (arg) (string-suffix? ".sch" arg)) (command-line)))
(define (put-source source) (format #t "! source=~A\n" source))
--Apple-Mail=_4B3A2921-2F18-460B-A594-CC0C113B6C5D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=windows-1252
Give me any ideas on how this could be improved. The wonders of the =
toolkit approach!
>=20
> I also like pace of gschem development. It doesn't surprise me with =
new boxy UI with pink kittens. It just works.
Yep. That=92s what you need in production software.
>=20
> Best regards,
> Hannu Vuolasaho
> =20
>=20
John Doty Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com
--Apple-Mail=_4B3A2921-2F18-460B-A594-CC0C113B6C5D--
- Raw text -