www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2017/01/16/13:34:05

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=date:from:to:subject:message-id:mail-followup-to:references
:mime-version:content-disposition:in-reply-to:user-agent;
bh=HcIjVINXAUgTWXXzvwMrWphd9ghAp8vECu1hkzsLHwo=;
b=MYdUXNBrNy61B1Bhus4VprNN+NAcLOvrx3qhk5vCCwhH/ONtNMmMOXMn4Zg7QUsCi0
6ineouVfF5u5hw+/sGcZyid9Gull3mjkkTg+tgq+LT8RwvrC+aGZ/Kl9hsKe+kDDAscM
sVPwWxvVrkKntL2Vtul6LOto5+FzpovZZURqcH44mCjqImW/ijQ91NZzTIdk9ZOVt1Dt
rlF0HobnwLDW9c/gxjdlBs9AMGJNBcaUUe2X+mJHhgNXhEwBsPtshMzkEPBLnPyXKgLU
vI2DFZdUQkyw5odO5asDwRWp5TTwFFNKzaJU9pQVNkinAFX/Rb5AUOyeSTzkmNxdJQrM
3PmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to
:references:mime-version:content-disposition:in-reply-to:user-agent;
bh=HcIjVINXAUgTWXXzvwMrWphd9ghAp8vECu1hkzsLHwo=;
b=eog/OyHmwkny8BQZDWWoDT9moD2EH05k+VlxYhAnoygAaaz6D4LPsUBK6Fmru7GKC1
F50BxXj0qoiOkZKCe0PTibuy/vy0iFRhpLLo+6nqUZWUHEyttY/2Rn3tvbEHLEed6ZPb
V9Hesdf0AQOc7+WUEk1bftQGwY3KXvo4hXB0oOPVoq1yUz4T7wINmPCeGTqYLWXLgDdu
5fESAbHEMG6UILpJhyKcJ5tbpDER5gztWwg97GOAiAxo8oqaWgUUmMDUIozRh5pmJX6I
rwrWeY9fubamviUPVK8+bnpwv0vFu9pQ8sELJU1slGmEIiWYe2Otv6QpaxA+T4Ocbv34
MtHg==
X-Gm-Message-State: AIkVDXLZOezrplFCxgkRDbpfvInAUfkdWHjN8VsLcJHAv6I4gBwdc3iC3AfhuuyBBTN+Hw==
X-Received: by 10.25.19.67 with SMTP id j64mr12978918lfi.34.1484591542313;
Mon, 16 Jan 2017 10:32:22 -0800 (PST)
Date: Mon, 16 Jan 2017 21:32:19 +0300
From: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] gEDA/gaf: want an advice
Message-ID: <20170116183219.GA24349@localhost.localdomain>
Mail-Followup-To: geda-user AT delorie DOT com
References: <20170115211156 DOT GB27077 AT localhost DOT localdomain>
<9150b032-82fd-2578-bce2-73f9ede0d2b5 AT ecosensory DOT com>
MIME-Version: 1.0
In-Reply-To: <9150b032-82fd-2578-bce2-73f9ede0d2b5@ecosensory.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, Jan 15, 2017 at 04:16:09PM -0600, John Griessen (john AT ecosensory DOT com) [via geda-user AT delorie DOT com] wrote:
...
>  I would want to, but I have to much to do to start very soon.
> I think there could be some good use of your work, even by people
> who don't want to use scheme/LISP for programming.

I hope :-)

> 
> How do we learn more about your tree representation?
>

For example, in the directory gnetlist/test:
  gnetlist -i hierarchy.sch


(If you want to run Geiser in Emacs, do:

scheme@(guile-user)> ,use (system repl server)
scheme@(guile-user)> (spawn-server)

and use `M-x connect-to-guile'. It's a very convenient environment
to work with Scheme.)


Type in REPL:
  
scheme@(guile-user)> (schematic-netlist toplevel-schematic)

to get the current gnetlist netlist representation,
or

scheme@(guile-user)> (schematic-netlist toplevel-schematic)

or better

scheme@(guile-user)> ,pretty-print (schematic-netlist toplevel-schematic)

to see its tree view.


Currently, I've reduced the package info to show only package
id's. In order to see, say, their refdeses in the output of the
above commands, you can, e.g., replace the current line in
'gnetlist/scheme/gnetlist/package.scm:

 (set-record-type-printer!
  <package>
  (lambda (record port) (format port "#<geda-package ~A>" (package-id record))))

with

 (set-record-type-printer!
  <package>
   (lambda (record port) (format port "#<geda-package ~A ~A>" (package-id record) (package-refdes record))))


Then, you have to think up, what do you want to do with that
(netlist or tree) representation. For example, the (resurrected)
'makedepend' backend outputs lines to use in Makefiles for spice
simulation. This is using of the tree representation. Some other
backends use the flat netlist representation (schematic-netlist)
to yield netlists.

-- 
  Vladimir

- Raw text -


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