delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2021/07/09/11:04:56

X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f
X-Recipient: geda-help AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=q5NZzuNhQBzP21qUzldTp2UoEoZdVpfY9otMnpUEa9g=;
b=pnjaPLkexAFfSvmtJAOrGxK12OaInAS4jNrbXD8X9AqMW/h/Iuot0wuMhZuOdZPWj7
8nnihMaWHtWmKNCZl2dqKjmze5a/3ZqJmpZf6PXYbShqP2/mKgsbZWubQN7mtl5nB0HQ
8cacQDLvw6p258cVu6TozbMJYRQCWNDdMEGFKJ7llzwOifjb2vUHoiD8KR36voJ4lyrh
gtMRAE5/s+v+G5gajQ/95KlobGA9GdcBn+tVQ0Uj6bquGegXhOd7kjckEfQlJQAm/AIt
sVB87We/ABInEo4ZIAPY2FIzUPAB5lz0YfJAjsByXcUmM7WbC9FT5MPSXVeVEv3Pyx6e
1HCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=q5NZzuNhQBzP21qUzldTp2UoEoZdVpfY9otMnpUEa9g=;
b=Bb0arApjOzkt0/whQ5yivCQ8j+M9QBms49OCZ0YdxJgO5A2Gsdt/dPo1ZuqtqZiidC
SdM2k+JDNzQ3vkOeT/9N7wmYE03ZGVf8AHgdtvINx36T530l2RW5HmPIhMIAWbxqZWsR
/FCIhBcfAPKY9+SdJeALHY3QmucFEpgtMwqg+h4XgeNKZ798RXl1ES7s1L6kFCeyw+bQ
9aznZZZildCNQOOBBzSgpbWmpAd3qHPqci1KO8FMpoFRLjg2s3fUcjk5aqzrHG2rQue4
noZODY0HQQRejnv7rBTzByae+zOVZj7lgtOvIAEk2zGuoQ4d8V13fi2vuPkEQ+fUz/NB
+Xeg==
X-Gm-Message-State: AOAM532LdBZJaD19Sa+OATLBvn6pbDmfuWugGyEj7c5wa2XYz/mt1urD
vxvrAuVPqqacDpPNB51qb0XkLLOR28qQHNIww4Il1Fl7rfA=
X-Google-Smtp-Source: ABdhPJzZ67nBUw13MFxQCaNn7NbPnmpjYYOJQJ/ERlX4GoR494oq0DTIOqXtdsFD1V/guDWXWp/fOuqcQ9zyIwOwF8k=
X-Received: by 2002:a2e:5457:: with SMTP id y23mr13263676ljd.279.1625843044412;
Fri, 09 Jul 2021 08:04:04 -0700 (PDT)
MIME-Version: 1.0
References: <CACU7o4DPmtO7=YjwFntuiNVsL_WpYXVA27xKz4gaC-vST9aYCQ AT mail DOT gmail DOT com>
<19DBCEED-2164-4BD3-A240-6090BABF5580 AT noqsi DOT com> <alpine DOT DEB DOT 2 DOT 21 DOT 2107091506440 DOT 2326 AT nimbus>
In-Reply-To: <alpine.DEB.2.21.2107091506440.2326@nimbus>
From: "hyral.sacai (hyral DOT sacai AT gmail DOT com) [via geda-help AT delorie DOT com]" <geda-help AT delorie DOT com>
Date: Sat, 10 Jul 2021 00:03:45 +0900
Message-ID: <CACU7o4DHROoMGEnEz3rRZV4ttnbo7TNTaO2RbX=3QK8=Zya4rQ@mail.gmail.com>
Subject: Re: [geda-help] Can we specify a file/netlist-library path in the
gafrc file?
To: geda-help AT delorie DOT com
Reply-To: geda-help AT delorie DOT com

--0000000000001f6fdf05c6b21582
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, Jul 9, 2021 at 9:07 PM John Doty <jpd AT noqsi DOT com> wrote:

> On Jul 9, 2021, at 7:32 AM, hyral.sacai (hyral DOT sacai AT gmail DOT com) [via
> geda-help AT delorie DOT com] <geda-help AT delorie DOT com> wrote:
>
> Unfortunately, I'm using a special circuit simulator that does not like
> the gnetlist result where symbols are associated with sub-schematics via
> the source attribute.
>
>
> What, exactly, is the trouble?
>
> Have you tried the spice-noqsi back end? It can handle this sort of
> organization. See
> https://github.com/noqsi/gnet-spice-noqsi/wiki/Broadband-amplifier-board.
> Unfortunately, I am no longer maintaining it for gEDA, but it works fine =
in
> Lepton, I just used it yesterday.
>

When using the source attribute, the gnetlist (spice-sdb) result is a
flattened netlist using syntax like "X2/X0/R1" "X1/X3/R1" and the circuit
simulator does not support this, but it does support the .SUBCKT
hierarchical approach which I can achieve by using the file attribute to
point to the appropriate subckt netlist file, it's just that it would be
nice to specify a folder of subckt netlist files that gnetlist will search
in so that users of my library don't have to specify the exact location of
those netlists.

I took a look at the BBamp example and tried to emulate the attributes
pointed out in the following text:

> The BBamp.sch schematic is the amplifier itself. Its symbol is included i=
n the drawing as a graphical comment for the reader, using a graphical=3D1 =
attribute. A toplevel "spice-prolog=3D.subckt BBamp %up" attribute creates =
the .subckt "card" using the %up function. It is mirrored by a "spice-proto=
type=3DX? %down BBamp" attribute in the symbol itself. The SPICE code gener=
ated by this pair of attributes mimics the semantics of hierarchy traversal=
 in gnetlist. The symbol also contains "file=3DBBamp.cir". This generates "=
.INCLUDE BBamp.cir" in the higher level SPICE netlist.
>
>
I couldn't get it to work right away, probably missed something, will look
at it more earnestly later.
But if I do use the source attribute approach with the spice-noqsi backend,
will it generate a netlist that uses .SUBCKT definitions instead of the
forward slash syntax (X1/X2/X3...)? From the above description, it sounds
like it does.

On Fri, Jul 9, 2021 at 10:14 PM Roland Lutz <rlutz AT hedmen DOT org> wrote:

>
> The spice-noqsi backend works fine in gEDA/gaf.  Also, it shouldn't be
> hard to adapt the Python version of the backend to your needs:
>
>
> https://github.com/rlutz/geda-gaf/blob/master/xorn/src/backend/gnet_spice=
_noqsi.py


Thanks, will take a look at that.

Hyral

--0000000000001f6fdf05c6b21582
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"></div><div><br></div><div><div dir=3D"ltr=
" class=3D"gmail_attr">On Fri, Jul 9, 2021 at 9:07 PM John Doty &lt;<a href=
=3D"mailto:jpd AT noqsi DOT com" target=3D"_blank">jpd AT noqsi DOT com</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><blockqu=
ote type=3D"cite"><div>On Jul 9, 2021, at 7:32 AM, hyral.sacai (<a href=3D"=
mailto:hyral DOT sacai AT gmail DOT com" target=3D"_blank">hyral DOT sacai AT gmail DOT com</a>) =
[via=C2=A0<a href=3D"mailto:geda-help AT delorie DOT com" target=3D"_blank">geda-h=
elp AT delorie DOT com</a>] &lt;<a href=3D"mailto:geda-help AT delorie DOT com" target=3D=
"_blank">geda-help AT delorie DOT com</a>&gt; wrote:</div><br><div><span style=3D"=
font-family:Helvetica;font-size:12px">Unfortunately, I&#39;m using a specia=
l circuit simulator that does not like the gnetlist result where symbols ar=
e associated with sub-schematics via the source attribute.=C2=A0</span></di=
v></blockquote><div><br></div>What, exactly, is the trouble?<br><br></div><=
div>Have you tried the spice-noqsi back end? It can handle this sort of org=
anization. See=C2=A0<a href=3D"https://github.com/noqsi/gnet-spice-noqsi/wi=
ki/Broadband-amplifier-board" target=3D"_blank">https://github.com/noqsi/gn=
et-spice-noqsi/wiki/Broadband-amplifier-board</a>. Unfortunately, I am no l=
onger maintaining it for gEDA, but it works fine in Lepton, I just used it =
yesterday.</div></div></blockquote><div><br></div></div><div>When using the=
 source attribute, the gnetlist (spice-sdb) result is a flattened netlist u=
sing syntax like &quot;X2/X0/R1&quot; &quot;X1/X3/R1&quot; and the circuit =
simulator does not support this, but it does support the .SUBCKT hierarchic=
al approach which I can achieve by using the file attribute to point to the=
 appropriate subckt netlist file, it&#39;s just that it would be nice to sp=
ecify a folder of subckt netlist files that gnetlist will search in so that=
 users of my library don&#39;t have to specify the exact location of those =
netlists.=C2=A0</div><div><br></div><div><div>I took a look at the BBamp ex=
ample and tried to emulate the attributes pointed out in the following text=
:</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre style=3D"box-=
sizing:border-box;font-family:ui-monospace,SFMono-Regular,&quot;SF Mono&quo=
t;,Consolas,&quot;Liberation Mono&quot;,Menlo,monospace;font-size:12px;marg=
in-bottom:0px;margin-top:0px;color:rgb(36,41,47);white-space:pre-wrap">The =
BBamp.sch schematic is the amplifier itself. Its symbol is included in the =
drawing as a graphical comment for the reader, using a graphical=3D1 attrib=
ute. A toplevel &quot;spice-prolog=3D.subckt BBamp %up&quot; attribute crea=
tes the .subckt &quot;card&quot; using the %up function. It is mirrored by =
a &quot;spice-prototype=3DX? %down BBamp&quot; attribute in the symbol itse=
lf. The SPICE code generated by this pair of attributes mimics the semantic=
s of hierarchy traversal in gnetlist. The symbol also contains &quot;file=
=3DBBamp.cir&quot;. This generates &quot;.INCLUDE BBamp.cir&quot; in the hi=
gher level SPICE netlist.</pre></blockquote><div><br></div><div>I couldn&#3=
9;t get it to work right away, probably missed something, will look at it m=
ore earnestly later.</div></div><div>But if I do use the source attribute a=
pproach with the spice-noqsi backend, will it generate a netlist that uses =
.SUBCKT definitions instead of the forward slash syntax (X1/X2/X3...)? From=
 the above description, it sounds like it does.</div><div><br></div><div cl=
ass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jul 9, 20=
21 at 10:14 PM Roland Lutz &lt;<a href=3D"mailto:rlutz AT hedmen DOT org" target=
=3D"_blank">rlutz AT hedmen DOT org</a>&gt; wrote:<br></div><blockquote class=3D"g=
mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex"><br>
The spice-noqsi backend works fine in gEDA/gaf.=C2=A0 Also, it shouldn&#39;=
t be <br>
hard to adapt the Python version of the backend to your needs:<br>
<br>
<a href=3D"https://github.com/rlutz/geda-gaf/blob/master/xorn/src/backend/g=
net_spice_noqsi.py" rel=3D"noreferrer" target=3D"_blank">https://github.com=
/rlutz/geda-gaf/blob/master/xorn/src/backend/gnet_spice_noqsi.py</a></block=
quote><div><br></div><div>Thanks, will take a look at that.</div><div><br><=
/div><div>Hyral=C2=A0</div></div></div>

--0000000000001f6fdf05c6b21582--

- Raw text -


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