delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/03/27/11:46:19

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=IsTsnXo6axG7U3qaOdpLckt5f17+EPmwgTUGIL59j+8=;
b=ABFeAuMTUkxF+VZ4O6HGCrSNnZ/Dl3sVhRzrOJPq9EgEMRgZ/Uk9+PUX4vcilgb7ku
PMC2a6FsiIX3tK2hxHo4FPTzmfYB4SlXbXsc1/AGF7J5G8NNPgPlgcm0zkQNVbcWPzyx
6ej5oh0Jdas5RVTRlwgZuFktPybT9NysOwz57wz8/SZI9XlsRiB+QzgIlNI0j/7HLCKx
mBQZ0Xtcv2BG7C8JtqzwbSHWMC6ORBkt3JK2FxIRN5mPUPl3dApzT1tu3VcruqE1knmr
XCjuZBgYslkh39UGnua/kM3ml4oZCP9p0I+bcs7SefgQwexLuOboBYIZJD4A7J1jPefw
D6dg==
MIME-Version: 1.0
X-Received: by 10.183.24.161 with SMTP id ij1mr2038164obd.33.1395935105444;
Thu, 27 Mar 2014 08:45:05 -0700 (PDT)
In-Reply-To: <E3C6231A-F944-4FA0-8871-2EDE95063BB2@noqsi.com>
References: <CAG4ve9+xPw3FvQQtVG5RUqOSZ_ZzYyUkbuFe9nFOZSS-GVxrHA AT mail DOT gmail DOT com>
<90989E71-79DC-4CAE-8A33-EBCC26DDBFB4 AT noqsi DOT com>
<CAG4ve9K7Q29MvGkK-fvN79Fvd9SmzGdXpycBYCfDAwu59eJhZQ AT mail DOT gmail DOT com>
<CAG4ve9Lx4mFt2JFGk22GXofu4wHi2e2KSZfnpmM75Lyq1BmS8A AT mail DOT gmail DOT com>
<E3C6231A-F944-4FA0-8871-2EDE95063BB2 AT noqsi DOT com>
Date: Thu, 27 Mar 2014 19:45:05 +0400
Message-ID: <CAG4ve9Jzv4Fz=rE6mh6oCvQoJpj97NQDePoX_48kgqEXM3rryQ@mail.gmail.com>
Subject: Re: [geda-user] single row .subckt
From: =?KOI8-R?B?4czFy9PFyiDowdLYy8/X08vJyg==?= <svetonomer AT gmail DOT com>
To: geda-user AT delorie DOT com
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

--001a1134aa0217137104f59878b1
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

 But the useful thing ...
Very flexible


2014-03-26 23:35 GMT+04:00 John Doty <jpd AT noqsi DOT com>:

>
> On Mar 25, 2014, at 8:31 AM, =E1=CC=C5=CB=D3=C5=CA =E8=C1=D2=D8=CB=CF=D7=
=D3=CB=C9=CA wrote:
>
> Why this is not part of geda?
>
>
> Well, I haven't pushed for it to be. I'm not happy with the lack of
> documentation (Stuart Brorson has set the standard very high in this area=
).
> I expect the core developers would also like to see some test cases.
>
>
>
> 2014-03-17 18:02 GMT+04:00 =E1=CC=C5=CB=D3=C5=CA =E8=C1=D2=D8=CB=CF=D7=D3=
=CB=C9=CA <svetonomer AT gmail DOT com>:
>
>> Thank you John.
>>
>>  This is works even with ? characters :)))
>>
>>
>> 2014-03-17 6:20 GMT+04:00 John Doty <jpd AT noqsi DOT com>:
>>
>>
>>> On Mar 16, 2014, at 3:21 PM, =E1=CC=C5=CB=D3=C5=CA =E8=C1=D2=D8=CB=CF=
=D7=D3=CB=C9=CA wrote:
>>>
>>> Hello all.
>>> I want to place to symbol single row model .subckt.
>>>
>>> Example of spice:
>>>
>>> .SUBCKT opamp 1 2 3 4 5
>>> B1 5 0 V =3D V(3)<1e5*(V(1)-V(2)) ? V(3) : V(4)>1e5*(V(1)-V(2)) ? V(4) =
:
>>> 1e5*(V(1)-V(2))
>>> .ends
>>>
>>> But I do not finded this in wiki.
>>> How I understand single row may be only .model
>>> refdes=3DU?
>>> model =3D ....
>>> model-name =3D name
>>>
>>> SUBCKT section adds by file mechanism:
>>> refdes=3DX?
>>> model-name =3D name
>>> file=3D/file
>>>
>>> Why?
>>>
>>>
>>> Because the way that the spice and spice-sdb back ends are implemented,
>>> things like this must be implemented as special cases in the code. Ther=
e
>>> are an unlimited number of such cases, but only a few are actually
>>> implemented. If you want another, you have to modify the Scheme code.
>>> That's a major motivation for https://github.com/noqsi/gnet-spice-noqsi=
.
>>>
>>> In the spice-noqsi back end, you define how a symbol is to be
>>> represented in the SPICE netlist with a spice-prototype attribute. In t=
his
>>> case (assuming your symbol has pinseq attributes in the correct order f=
or
>>> the other back ends), you could use two multi-line attributes:
>>>
>>> spice-prototype=3DX? %pinseq opamp
>>> model@
>>>
>>> model=3D.SUBCKT opamp 1 2 3 4 5
>>>
>>> B1 5 0 V =3D V(3)<1e5*(V(1)-V(2)) ? V(3) : V(4)>1e5*(V(1)-V(2)) ? V(4) =
:
>>> 1e5*(V(1)-V(2))
>>> .ends
>>>
>>> You can't put the model directly in the spice-prototype because it
>>> contains the "magic" character "?". I may consider a less crude quoting
>>> mechanism in the future.
>>>
>>> You can also use pin number to specify connections in any order if
>>> pinseq isn't right: this gives you a way around the overloading of pins=
eq
>>> (also used for slotting). spice-noqsi can also imitate the way gnetlist
>>> natively handles hierarchy when flattening a netlist, allowing you to
>>> create hierarchical SPICE netlists representing circuits drawn for flat
>>> printed circuit designs.
>>>
>>> John Doty              Noqsi Aerospace, Ltd.
>>> http://www.noqsi.com/
>>> jpd AT noqsi DOT com
>>>
>>>
>>>
>>
>
> John Doty              Noqsi Aerospace, Ltd.
>
> http://www.noqsi.com/
>
> jpd AT noqsi DOT com
>
>
>

--001a1134aa0217137104f59878b1
Content-Type: text/html; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div id=3D"gt-src-c" class=3D""><div id=3D"gt-src-p"> </di=
v> </div> <div id=3D"gt-res-c" class=3D""><div id=3D"gt-res-p"><div id=3D"g=
t-res-data"><div id=3D"gt-res-wrap"><div id=3D"gt-res-content" class=3D""><=
div dir=3D"ltr" style=3D"zoom:1">
<span id=3D"result_box" class=3D"" lang=3D"en"><span class=3D"">But the</sp=
an> <span class=3D"">useful thing</span> <span class=3D"">...</span> <br><s=
pan class=3D"">Very flexible</span></span></div></div></div></div></div></d=
iv></div><div class=3D"gmail_extra">
<br><br><div class=3D"gmail_quote">2014-03-26 23:35 GMT+04:00 John Doty <sp=
an dir=3D"ltr">&lt;<a href=3D"mailto:jpd AT noqsi DOT com" target=3D"_blank">jpd AT n=
oqsi.com</a>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style=3D"word-wrap:break-word"><br><div><div class=3D""><div>On Mar 25=
, 2014, at 8:31 AM, =E1=CC=C5=CB=D3=C5=CA =E8=C1=D2=D8=CB=CF=D7=D3=CB=C9=CA=
 wrote:</div><br><blockquote type=3D"cite"><div dir=3D"ltr">Why this is not=
 part of geda?<br></div></blockquote><div>
<br></div></div>Well, I haven&#39;t pushed for it to be. I&#39;m not happy =
with the lack of documentation (Stuart Brorson has set the standard very hi=
gh in this area). I expect the core developers would also like to see some =
test cases.</div>
<div><div class=3D"h5"><div><br><blockquote type=3D"cite"><div class=3D"gma=
il_extra"><br><br><div class=3D"gmail_quote">2014-03-17 18:02 GMT+04:00 =E1=
=CC=C5=CB=D3=C5=CA =E8=C1=D2=D8=CB=CF=D7=D3=CB=C9=CA <span dir=3D"ltr">&lt;=
<a href=3D"mailto:svetonomer AT gmail DOT com" target=3D"_blank">svetonomer AT gmail.=
com</a>&gt;</span>:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr">Thank you John.<br><div><di=
v><div><div><div style=3D"width:100%"><br></div></div> </div> </div>This is=
 works even with ? characters :)))<br>


</div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">2=
014-03-17 6:20 GMT+04:00 John Doty <span dir=3D"ltr">&lt;<a href=3D"mailto:=
jpd AT noqsi DOT com" target=3D"_blank">jpd AT noqsi DOT com</a>&gt;</span>:<div><div>
<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef=
t:1px #ccc solid;padding-left:1ex">
<div style=3D"word-wrap:break-word"><div><div><br><div><div>On Mar 16, 2014=
, at 3:21 PM, =E1=CC=C5=CB=D3=C5=CA =E8=C1=D2=D8=CB=CF=D7=D3=CB=C9=CA wrote=
:</div><br><blockquote type=3D"cite"><div dir=3D"ltr"><div><div>Hello all.<=
br></div>I want to place to symbol single row model .subckt.<br>


</div><br>Example of spice:<br><div><br>.SUBCKT opamp 1 2 3 4 5<br>B1 5 0 V=
 =3D V(3)&lt;1e5*(V(1)-V(2)) ? V(3) : V(4)&gt;1e5*(V(1)-V(2)) ? V(4) : 1e5*=
(V(1)-V(2))<br>
.ends<br><br>But I do not finded this in wiki.<br></div><div>How I understa=
nd single row may be only .model<br></div><div>refdes=3DU?<br>model =3D ...=
.<br></div><div>model-name =3D name<br><br></div><div>SUBCKT section adds b=
y file mechanism:<br>



<div>refdes=3DX?<br></div><div>model-name =3D name<br></div><div>file=3D/fi=
le<br></div><br></div><div>Why?<br></div><div><br></div></div>
</blockquote></div><div><br></div></div></div>Because the way that the spic=
e and spice-sdb back ends are implemented, things like this must be impleme=
nted as special cases in the code. There are an unlimited number of such ca=
ses, but only a few are actually implemented. If you want another, you have=
 to modify the Scheme code. That&#39;s a major motivation for=9A<a href=3D"=
https://github.com/noqsi/gnet-spice-noqsi" target=3D"_blank">https://github=
.com/noqsi/gnet-spice-noqsi</a>.<div>


<br></div><div>In the spice-noqsi back end, you define how a symbol is to b=
e represented in the SPICE netlist with a spice-prototype attribute. In thi=
s case (assuming your symbol has pinseq attributes in the correct order for=
 the other back ends), you could use two multi-line attributes:</div>


<div><br></div><div>spice-prototype=3DX? %pinseq opamp</div><div>model@</di=
v><div><br></div><div>model=3D.SUBCKT opamp 1 2 3 4 5<div><br>B1 5 0 V =3D =
V(3)&lt;1e5*(V(1)-V(2)) ? V(3) : V(4)&gt;1e5*(V(1)-V(2)) ? V(4) : 1e5*(V(1)=
-V(2))<br>


.ends</div></div><div><br></div><div>You can&#39;t put the model directly i=
n the spice-prototype because it contains the &quot;magic&quot; character &=
quot;?&quot;. I may consider a less crude quoting mechanism in the future.<=
/div>


<div><br></div><div>You can also use pin number to specify connections in a=
ny order if pinseq isn&#39;t right: this gives you a way around the overloa=
ding of pinseq (also used for slotting). spice-noqsi can also imitate the w=
ay gnetlist natively handles hierarchy when flattening a netlist, allowing =
you to create hierarchical SPICE netlists representing circuits drawn for f=
lat printed circuit designs.</div>


<div><br></div><div><div><div><div style=3D"margin-top:0px;margin-right:0px=
;margin-bottom:0px;margin-left:0px;font-size:12px"><font style=3D"font:12.0=
px Helvetica" face=3D"Helvetica" size=3D"3">John Doty<span>=9A =9A =9A =9A =
=9A<span>=9A</span><span>=9A =9A<span>=9A</span></span></span>Noqsi Aerospa=
ce, Ltd.</font></div>
<div style=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left=
:0px;font-size:12px"><a href=3D"http://www.noqsi.com/" target=3D"_blank">ht=
tp://www.noqsi.com/</a></div><div style=3D"margin-top:0px;margin-right:0px;=
margin-bottom:0px;margin-left:0px;font-size:12px">


<font style=3D"font:12.0px Helvetica" face=3D"Helvetica" size=3D"3"><a href=
=3D"mailto:jpd AT noqsi DOT com" target=3D"_blank">jpd AT noqsi DOT com</a></font></div><=
span style=3D"font-size:12px"><br></span>
</div>
<br></div></div></div></blockquote></div></div></div><br></div>
</blockquote></div><br></div>
</blockquote></div><br><div>
<span style=3D"border-spacing:0px 0px;text-indent:0px;letter-spacing:normal=
;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;l=
ine-height:normal;border-collapse:separate;text-transform:none;font-size:12=
px;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style=
=3D"border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-varia=
nt:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:=
normal;border-collapse:separate;text-transform:none;font-size:12px;white-sp=
ace:normal;font-family:Helvetica;word-spacing:0px"><p style=3D"margin:0.0px=
 0.0px 0.0px 0.0px">
<font style=3D"font:12.0px Helvetica" face=3D"Helvetica" size=3D"3">John Do=
ty<span>=9A =9A =9A =9A =9A<span>=9A</span><span>=9A =9A<span>=9A</span></s=
pan></span>Noqsi Aerospace, Ltd.</font></p><p style=3D"margin:0.0px 0.0px 0=
.0px 0.0px"><a href=3D"http://www.noqsi.com/" target=3D"_blank">http://www.=
noqsi.com/</a></p>
<p style=3D"margin:0.0px 0.0px 0.0px 0.0px"><font style=3D"font:12.0px Helv=
etica" face=3D"Helvetica" size=3D"3"><a href=3D"mailto:jpd AT noqsi DOT com" targe=
t=3D"_blank">jpd AT noqsi DOT com</a></font></p><br></span></span>
</div>
<br></div></div></div></blockquote></div><br></div>

--001a1134aa0217137104f59878b1--

- Raw text -


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