delorie.com/archives/browse.cgi | search |
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:in-reply-to:references:mime-version; | |
bh=/gQRAm+VCiAsqj6QEpbzx3j+d1DGIDi9vwkGib6qYGU=; | |
b=KD9qCkIzIhi067D34Qh95rmrmRMgRnUFHYRmt2K2tM5DLa7R/qLDnvPlWAn21CdUvw | |
oWxeFG2IbQwCURfm1FwN6wyAlYf1st8xSCmPkDxNhpYkA+TZCCKx9/qCTNjCq/ppngEa | |
XGH6lkD+MwV4Nmw31rrhIjj90+LuD5Q2J/Acw+QzN1RQV6jDvqMr/eAHbAWNcSIKLJ72 | |
lQfiWyHptSNOyfbtFnsH09Z2S0jc1aesTs1kcoUQbIOP0M7GD7sOh6c4cl2udsa28hSv | |
TCBesTzunaGFM503JCEF84HmHZBf1RQ1Sok3Pe0SuvjHA+OZIvZfJxJV5tuMiF0PGAvK | |
wjBg== | |
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:in-reply-to | |
:references:mime-version; | |
bh=/gQRAm+VCiAsqj6QEpbzx3j+d1DGIDi9vwkGib6qYGU=; | |
b=c1Vnjn8L1BwJlteUtYAlePu6xED91IQeXGvcUFFuNRd5VIPSVkUuJyWvUd91lPjEth | |
WI3f5JCyx7S2FXNzJBV9zDENx3Pnm5Bc22+IciG0ia8jFxkDQeayW94X/DZ1sNP0yKiI | |
JaaTOSAAsSoGTVBCI6lxRtVLkDl5dIqJxCrFjunfru1KIKRJOLU5noPm3cWfud0WQxR0 | |
WLm4NaOJaQCVu+pXDnXCdARiRJ6XXSjOY2LBhIXmjc7krFFe/86FGEwNQ7B7Vd6iwaOT | |
IF0wB0UhHPXqKhdFmKtWvThoGpWNhPvzjK/miH19KS6sJ7TJ7d9lGRSPJrTlD9YZGwya | |
n+sA== | |
X-Gm-Message-State: | AIVw113KTWRc8jZzfSjO/Em+dju9YOAq/E33PbbbAT7b93VNGw+s4+3W |
9k7YCepj68Ot4cOD | |
X-Received: | by 10.46.83.86 with SMTP id t22mr1614628ljd.24.1500068048268; |
Fri, 14 Jul 2017 14:34:08 -0700 (PDT) | |
Date: | Fri, 14 Jul 2017 23:34:04 +0200 |
From: | "Nicklas Karlsson (nicklas DOT karlsson17 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] Add linuxcnc netlist backend |
Message-Id: | <20170714233404.6c4e67721ba9f36bd41c84c9@gmail.com> |
In-Reply-To: | <20170714162048.63c65f8b@Parasomnia.thuis.lan> |
References: | <20170714013648 DOT 9f3293d2ef6acc507ca98aa8 AT gmail DOT com> |
<7622012C-335A-4569-8B6E-A3455078FD97 AT noqsi DOT com> | |
<20170714142250 DOT e21f9feb2733061910b75089 AT gmail DOT com> | |
<20170714162048 DOT 63c65f8b AT Parasomnia DOT thuis DOT lan> | |
X-Mailer: | Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) |
Mime-Version: | 1.0 |
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 |
This is a multi-part message in MIME format. --Multipart=_Fri__14_Jul_2017_23_34_04_+0200_lvojQZszLIUp0Wuh Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > Hi Nicklas, > > > To get the netlist correct was rather simple but I can't figure out > > how to get a list of devices and count them. > > Using scheme/guile: (length packages) > > See 'gnet-drc2.scm' for length examples. I got it and it works, a netlist is produced and rows with initialization. There is however a need find the source of the signal in nets to figure out if "setp" should be used to set to a constant value or if "net" should be used to connect several pins together. There are a few other obstacles but with this in place it should be usable or very close to useable, there seems to be a problem with out pin and hierarchy, backend file is attached if anybody want to try it. Nicklas Karlsson --Multipart=_Fri__14_Jul_2017_23_34_04_+0200_lvojQZszLIUp0Wuh Content-Type: application/octet-stream; name="gnet-linuxcnc.scm" Content-Disposition: attachment; filename="gnet-linuxcnc.scm" Content-Transfer-Encoding: base64 Ozs7IGdFREEgLSBHUEwgRWxlY3Ryb25pYyBEZXNpZ24gQXV0b21hdGlvbgo7OzsgZ25ldGxpc3Qg LSBnRURBIE5ldGxpc3QKOzs7IENvcHlyaWdodCAoQykgMTk5OC0yMDEwIEFsZXMgSHZlemRhCjs7 OyBDb3B5cmlnaHQgKEMpIDE5OTgtMjAxMCBnRURBIENvbnRyaWJ1dG9ycyAoc2VlIENoYW5nZUxv ZyBmb3IgZGV0YWlscykKOzs7Cjs7OyBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTsgeW91 IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeQo7OzsgaXQgdW5kZXIgdGhlIHRlcm1z IG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnkKOzs7IHRo ZSBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb247IGVpdGhlciB2ZXJzaW9uIDIgb2YgdGhlIExpY2Vu c2UsIG9yCjs7OyAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLgo7OzsKOzs7IFRo aXMgcHJvZ3JhbSBpcyBkaXN0cmlidXRlZCBpbiB0aGUgaG9wZSB0aGF0IGl0IHdpbGwgYmUgdXNl ZnVsLAo7OzsgYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxp ZWQgd2FycmFudHkgb2YKOzs7IE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJ Q1VMQVIgUFVSUE9TRS4gIF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wogICAobGFtYmRhIChwKQogICAgICAobmV3bGluZSBwKQog ICAgICAoZGlzcGxheSAiIyBBZGQgdGhyZWFkcyIgcCkKICAgICAgKG5ld2xpbmUgcCkKICAgKQop Cgo7Owo7OyBoZWFkZXIgZm9yIG5ldHMgc2VjdGlvbgo7OwooZGVmaW5lIGxpbnV4Y25jOnN0YXJ0 LW5ldHMKICAgKGxhbWJkYSAocCkKICAgICAgKG5ld2xpbmUgcCkKICAgICAgKGRpc3BsYXkgIiMg TmV0bGlzdCIgcCkKICAgICAgKG5ld2xpbmUgcCkKICAgKQopCgo7Owo7OyBUb3AgbGV2ZWwgbG9h ZCByZWFsdGltZSBoYWwgbW9kdWxlcyB3cml0aW5nIAo7OwooZGVmaW5lIChsaW51eGNuYzpsb2Fk cnQgbHMgcG9ydCkKICAoaWYgKG51bGw/IGxzKQogICAgICAnKCkKICAgICAgKGJlZ2luCiAgICAg ICAgICAgICAoZGlzcGxheSAibG9hZHJ0ICIgcG9ydCkKICAgICAgICAgICAgIChkaXNwbGF5IChj YXIgKGNkYXIgbHMpKSBwb3J0KQogICAgICAgICAgICAgKGRpc3BsYXkgIiBjb3VudD0iIHBvcnQp CiAgICAgICAgICAgICAoZGlzcGxheSAoY2FyIChjZHIgKGNkciAoY2RyIChjZGFyIGxzKSkpKSkg cG9ydCkKICAgICAgICAgICAgIChuZXdsaW5lIHBvcnQpCgoJICAgICAobGludXhjbmM6bG9hZHJ0 IChjZHIgbHMpIHBvcnQpCiAgICAgICkKICApCikKCQo7Owo7OyBUb3AgbGV2ZWwgY29tcG9uZW50 IHdyaXRpbmcgCjs7CihkZWZpbmUgKGxpbnV4Y25jOnRocmVhZHMtYWRkIGxzIGNvbXBvbmVudCBu IHBvcnQpCiAgKGlmIChudWxsPyBscykKICAgICAgJygpCiAgICAgIChiZWdpbgogICAgICAgICAg ICAgKGRpc3BsYXkgImFkZGYgIiBwb3J0KQogICAgICAgICAgICAgKGRpc3BsYXkgY29tcG9uZW50 IHBvcnQpCiAgICAgICAgICAgICAod3JpdGUtY2hhciAjXC4gcG9ydCkKICAgICAgICAgICAgIChk aXNwbGF5IG4gcG9ydCkKICAgICAgICAgICAgIChkaXNwbGF5ICIgIHNlcnZvLXRocmVhZCIgcG9y dCkKICAgICAgICAgICAgIChuZXdsaW5lIHBvcnQpCgoJICAgICAobGludXhjbmM6dGhyZWFkcy1h ZGQgKGNkciBscykgY29tcG9uZW50ICgrIG4gMSkgcG9ydCkKICAgICAgKQogICkKKQoKKGRlZmlu ZSAobGludXhjbmM6dGhyZWFkcyBscyBwb3J0KQogIChpZiAobnVsbD8gbHMpCiAgICAgICcoKQog ICAgICAoYmVnaW4KICAgICAgICAgICAgIChuZXdsaW5lIHBvcnQpCiAgICAgICAgICAgICAobGlu dXhjbmM6dGhyZWFkcy1hZGQgKGNhciAoY2FyIGxzKSkgKGNhciAoY2RhciBscykpIDAgcG9ydCkK CgkgICAgIChsaW51eGNuYzp0aHJlYWRzIChjZHIgbHMpIHBvcnQpCiAgICAgICkKICApCikKCihk ZWZpbmUgKGNvdW50LXNhbWUtcGFydHMgbHMpCiAgKGlmIChudWxsPyBscykKICAgICAgKGFwcGVu ZCBscykKICAgICAgKGxldCogKChwYXJ0cy10YWJsZS1uby11cmVmIChsZXQgKChyZXN1bHQgJygp KSkKCQkJCSAgICAoZm9yLWVhY2ggKGxhbWJkYSAobCkgKHNldCEgcmVzdWx0IChjb25zIChjZHIg bCkgcmVzdWx0KSkpIChyZXZlcnNlIGxzKSkKCQkJCSAgICAoYXBwZW5kIHJlc3VsdCkpKQoJICAg ICAoZmlyc3QtbHMgKGNhciBwYXJ0cy10YWJsZS1uby11cmVmKSkKCSAgICAgKG1hdGNoLWxlbmd0 aCAobGVuZ3RoIChtZW1iZXIgZmlyc3QtbHMgKHJldmVyc2UgcGFydHMtdGFibGUtbm8tdXJlZikp KSkKCSAgICAgKHJlc3QtbHMgKGxpc3QtdGFpbCBscyBtYXRjaC1sZW5ndGgpKQoJICAgICAobWF0 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51eGNuYzpzdGFydC1sb2FkcnQgcG9ydCkKICAg ICAgICAgICAgKGxpbnV4Y25jOmxvYWRydCBwYXJ0cy10YWJsZSBwb3J0KQoKICAgICAgICAgICAg KGxpbnV4Y25jOnN0YXJ0LXRocmVhZHMgcG9ydCkKICAgICAgICAgICAgKGxpbnV4Y25jOnRocmVh ZHMgcGFydHMtdGFibGUgcG9ydCkKCiAgICAgICAgICAgIChuZXdsaW5lIHBvcnQpCiAgICAgICAg ICAgIChkaXNwbGF5ICIjIFJlbmFtZWQgbmV0cyIgcG9ydCkKICAgICAgICAgICAgKG5ld2xpbmUg cG9ydCkKICAgICAgICAgICAgKGxpbnV4Y25jOnJlbmFtZWQtbmV0cyBwb3J0IChnbmV0bGlzdDpn ZXQtcmVuYW1lZC1uZXRzICJkdW1teSIpKQogICAgICAgICAgICAobGludXhjbmM6c3RhcnQtbmV0 cyBwb3J0KQogICAgICAgICAgICAobGludXhjbmM6bmV0cyBwb3J0KSkKICAgICAgICAgKGNsb3Nl LW91dHB1dC1wb3J0IHBvcnQpKQogICApCikKCjs7Cjs7IExpbnV4Y25jJ3MgbmV0bGlzdCBmb3Jt YXQgc3BlY2lmaWMgZnVuY3Rpb25zIGVuZHMgCjs7Cjs7IC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCgo= --Multipart=_Fri__14_Jul_2017_23_34_04_+0200_lvojQZszLIUp0Wuh--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |