delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/12/23/10:44:40

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-TCPREMOTEIP: 207.224.51.38
X-Authenticated-UID: jpd AT noqsi DOT com
From: John Doty <jpd AT noqsi DOT com>
Message-Id: <C894B504-3B47-40E6-AF3B-EC74CAB3FD3A@noqsi.com>
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Subject: Re: [geda-user] Unable to find definition of model...
Date: Tue, 23 Dec 2014 08:43:51 -0700
References: <7CEB5321-E3F6-45F3-B37B-A81FFD214FA6 AT imb-cnm DOT csic DOT es> <1112363134 DOT 147765 DOT 1419343436582 DOT JavaMail DOT yahoo AT jws10721 DOT mail DOT gq1 DOT yahoo DOT com>
To: geda-user AT delorie DOT com
In-Reply-To: <1112363134.147765.1419343436582.JavaMail.yahoo@jws10721.mail.gq1.yahoo.com>
X-Mailer: Apple Mail (2.1878.6)
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

--Apple-Mail=_D674C390-366B-4287-9B53-1032EF15D158
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

The heuristics that spice-sdb uses to determine prefixes are =
complicated, and sometimes unpredictable. In the past, I=E2=80=99ve seen =
it decide that my D flip-flops needed the prefix =E2=80=9CD=E2=80=9D, =
but SPICE had a hard time interpreting a flip-flop model as a diode ;-). =
I avoid this with the =E2=80=94nomunge flag (gnetlist -g spice-sdb =
=E2=80=94nomunge =E2=80=A6).

The add-on netlist back end at https://github.com/noqsi/gnet-spice-noqsi =
gives you much more control of prefixes and connections, but it=E2=80=99s =
not so well documented.

On Dec 23, 2014, at 7:03 AM, Johnny Cage <hellbourne AT yahoo DOT com> wrote:

> I tried that as well. Does not work. Perhaps my transistor model is =
bad. I will try to follow the example shown on geda:ngspice:
> geda:ngspice_and_gschem [gEDA Project Wiki]
> and see whether it compiles.
> =20
> =20
>=20
> =20
> =20
> =20
> =20
> =20
> geda:ngspice_and_gschem [gEDA Project Wiki]
> Table of Contents Overview Setup Adding some SPICE stuff Simulation =
Translations of this page are also available in the following languages: =
=D0=A0=D1=83=D1=81=D1=81=D0=BA=D0=B8=D0=B9. Overview
> View on wiki.geda-project.org
> Preview by Yahoo
> =20
>=20
>=20
> On Tuesday, December 23, 2014 2:19 PM, Francesc Vila =
<francesc DOT vila AT imb-cnm DOT csic DOT es> wrote:
>=20
>=20
> Hello,
>=20
> If you look at the generated netlist, the device still starts using =
the letter =E2=80=98M=E2=80=99 not the X. So ngspice looks for a MOS =
transistor instead of the subcircuit.
>=20
> AFAIK, to really fix the problem you should check the value of the =
attribute =E2=80=9Cdevice" on the symbol. It should be SUBCKT_PMOS or =
SUBCKT_NMOS instead of PMOS_TRANSISTOR or NMOS_TRANSISTOR. Then, the =
spice-sdb backend should generate the correct device line.
>=20
> Best regards,
> Francesc
>=20
>=20
> On 23 Dec 2014, at 13:39, Johnny Cage <hellbourne AT yahoo DOT com> wrote:
>=20
>> Well, I changed it to the following:
>>=20
>> * gnetlist -g spice-sdb -o spice.net TIC_based_CF739.sch
>> *********************************************************
>> * Spice file generated by gnetlist                      *
>> * spice-sdb version 4.28.2007 by SDB --                 *
>> * provides advanced spice netlisting capability.        *
>> * Documentation at http://www.brorson.com/gEDA/SPICE/   *
>> *********************************************************
>> *vvvvvvvv  Included SPICE model from =
/home/af3/Dropbox/Wrachtrup/simulations/spice/NE3210S01.mod vvvvvvvv
>> .subckt NE3210S01_v1 Gate Drain Source Ugw=3D160um Ngf=3D1
>> .param CGD=3D1.4e-15
>> .param CGS=3D60e-15
>> .param CSD=3D80e-15
>> .param LG=3D0.82e-9
>> .param LD=3D0.74e-9
>> .param LS=3D0.11e-9
>> L1 Drain D 'LD'
>> L2 Gate G 'LG'
>> L3 Source S 'LS'
>> C1 Gate Drain 'CGD'
>> C2 Gate Source 'CGS'
>> C3 Drain Source 'CSD'
>> J1 D G S NE3210S01 Ugw=3D160 N=3D1 M=3D1
>> .model NE3210S01 njf level=3D15=20
>> + VTO=3D-0.95 GAMMA=3D0.055 VGO=3D-0.323 VCH=3D1.03 GMMAX=3D0.08 =
VDSO=3D2 VSAT=3D0.44 KAPA=3D0.009 PEFF=3D101
>> + VTSO=3D-10 VCO=3D-0.245 MU=3D0.001 VBA=3D1 VBC=3D0.5 DELTGM=3D0.17 =
ALPHA=3D0.1
>> + RDB=3D1.0e9 CBS=3D160e-15 GDBM=3D60e-6 KDB=3D100 VDSM=3D100 =
GMMAXAC=3D0.082 VTOAC=3D-0.92
>> + GAMMAAC=3D0.06 KAPAAC=3D0.002 PEFFAC=3D294 VTSOAC=3D-10 =
DELTGMAC=3D0.17
>> + IS=3D26e-12 N=3D1.5 KBK=3D0 IDSOC=3D0.1 VBR=3D15 NBR=3D2
>> + RS=3D0.8 RG=3D2.0 RD=3D1.0 Ugw=3D160 Ngf=3D1
>> + C11O=3D188e-15 C11TH=3D129e-15 VINFL=3D-0.706 DELTGS=3D0.527 =
DELTDS=3D0.287 LAMBDA=3D0.03=20
>> + C12SAT=3D19e-15 CGDSAT=3D20e-15 RIS=3D4.8 RID=3D0.001 TAU=3D2.1e-12 =
CDSO=3D124e-15
>> .ends NE3210S01_v1
>>=20
>>=20
>>=20
>> *^^^^^^^^  End of included SPICE model from =
/home/af3/Dropbox/Wrachtrup/simulations/spice/NE3210S01.mod ^^^^^^^^
>> *
>> *=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D  Begin SPICE netlist of =
main design =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> .options TEMP=3D25
>> .INCLUDE /home/af3/Dropbox/Wrachtrup/simulations/spice/simulation.cmd
>> VDS1 1 0 DC 2V
>> Vac1 Vin 0 DC 0 AC 10MV SIN(0 1MV 32KHZ)
>> C1 0 1 47nF =20
>> R2 0 Vin 10MEG =20
>> R1 0 Vout 1.5K =20
>> MX1 1 Vin Vout Vout NE3210S01
>> .end
>> Still does not work and with the same error message. Any ideas?
>>=20
>>=20
>>=20
>> On Tuesday, December 23, 2014 1:24 PM, myken <myken AT iae DOT nl> wrote:
>>=20
>>=20
>> Hello John,
>>=20
>> To my knowledge, if you use a SUBCKT the component in question should =
have a X? as a refdes.
>>=20
>> Don't know what will happen if the name of the SUBCKT is the same as =
a MODEL name inside the SUBCKT, never tried it.
>>=20
>> Merry Christmas,
>> Robert Zeegers.
>>=20
>>=20
>> On 23/12/14 12:56, Johnny Cage wrote:
>>> I am trying to ngspice the following code:
>>>=20
>>> * gnetlist -g spice-sdb -o spice.net TIC_based_CF739.sch
>>> *********************************************************
>>> * Spice file generated by gnetlist *
>>> * spice-sdb version 4.28.2007 by SDB -- *
>>> * provides advanced spice netlisting capability. *
>>> * Documentation at http://www.brorson.com/gEDA/SPICE/ *
>>> *********************************************************
>>> *vvvvvvvv Included SPICE model from =
/home/af3/Dropbox/Wrachtrup/simulations/spice/NE3210S01.mod vvvvvvvv
>>> .SUBCKT NE3210S01 Gate Drain Source Ugw=3D160um Ngf=3D1
>>> .param CGD=3D1.4e-15
>>> .param CGS=3D60e-15
>>> .param CSD=3D80e-15
>>> .param LG=3D0.82e-9
>>> .param LD=3D0.74e-9
>>> .param LS=3D0.11e-9
>>> L1 Drain D 'LD'
>>> L2 Gate G 'LG'
>>> L3 Source S 'LS'
>>> C1 Gate Drain 'CGD'
>>> C2 Gate Source 'CGS'
>>> C3 Drain Source 'CSD'
>>> J1 D G S NE3210S01 Ugw=3D160 N=3D1 M=3D1
>>> .MODEL NE3210S01 njf level=3D15=20
>>> + VTO=3D-0.95 GAMMA=3D0.055 VGO=3D-0.323 VCH=3D1.03 GMMAX=3D0.08 =
VDSO=3D2 VSAT=3D0.44 KAPA=3D0.009 PEFF=3D101
>>> + VTSO=3D-10 VCO=3D-0.245 MU=3D0.001 VBA=3D1 VBC=3D0.5 DELTGM=3D0.17 =
ALPHA=3D0.1
>>> + RDB=3D1.0e9 CBS=3D160e-15 GDBM=3D60e-6 KDB=3D100 VDSM=3D100 =
GMMAXAC=3D0.082 VTOAC=3D-0.92
>>> + GAMMAAC=3D0.06 KAPAAC=3D0.002 PEFFAC=3D294 VTSOAC=3D-10 =
DELTGMAC=3D0.17
>>> + IS=3D26e-12 N=3D1.5 KBK=3D0 IDSOC=3D0.1 VBR=3D15 NBR=3D2
>>> + RS=3D0.8 RG=3D2.0 RD=3D1.0 Ugw=3D160 Ngf=3D1
>>> + C11O=3D188e-15 C11TH=3D129e-15 VINFL=3D-0.706 DELTGS=3D0.527 =
DELTDS=3D0.287 LAMBDA=3D0.03=20
>>> + C12SAT=3D19e-15 CGDSAT=3D20e-15 RIS=3D4.8 RID=3D0.001 TAU=3D2.1e-12 =
CDSO=3D124e-15
>>> .ENDS NE3210S01
>>>=20
>>>=20
>>>=20
>>> *^^^^^^^^ End of included SPICE model from =
/home/af3/Dropbox/Wrachtrup/simulations/spice/NE3210S01.mod ^^^^^^^^
>>> *
>>> *=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Begin SPICE netlist of =
main design =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>> .options TEMP=3D25
>>> .INCLUDE =
/home/af3/Dropbox/Wrachtrup/simulations/spice/simulation.cmd
>>> VDS1 1 0 DC 2V
>>> Vac1 Vin 0 DC 0 AC 10MV SIN(0 1MV 32KHZ)
>>> C1 0 1 47nF=20
>>> R2 0 Vin 10MEG=20
>>> R1 0 Vout 1.5K=20
>>> MQ1 1 Vin Vout Vout NE3210S01=20
>>> .end
>>> However, on the results.txt file I get the following message:
>>>=20
>>> Circuit: * gnetlist -g spice-sdb -o spice.net tic_based_cf739.sch
>>>=20
>>> Error on line 46 : mq1 1 vin vout vout ne3210s01
>>> Unable to find definition of model ne3210s01 - default assumed=20
>>>=20
>>> Does anyone know what the problem is?
>>>=20
>>> Merry Christmas,
>>> John Hellbourne
>>=20
>>=20
>>=20
>=20
>=20
>=20

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



--Apple-Mail=_D674C390-366B-4287-9B53-1032EF15D158
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">The =
heuristics that spice-sdb uses to determine prefixes are complicated, =
and sometimes unpredictable. In the past, I=E2=80=99ve seen it decide =
that my D flip-flops needed the prefix =E2=80=9CD=E2=80=9D, but SPICE =
had a hard time interpreting a flip-flop model as a diode ;-). I avoid =
this with the =E2=80=94nomunge flag (gnetlist -g spice-sdb =E2=80=94nomung=
e =E2=80=A6).<div><br></div><div>The add-on netlist back end at&nbsp;<a =
href=3D"https://github.com/noqsi/gnet-spice-noqsi">https://github.com/noqs=
i/gnet-spice-noqsi</a>&nbsp;gives you much more control of prefixes and =
connections, but it=E2=80=99s not so well =
documented.</div><div><br><div><div>On Dec 23, 2014, at 7:03 AM, Johnny =
Cage &lt;<a =
href=3D"mailto:hellbourne AT yahoo DOT com">hellbourne AT yahoo DOT com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div style=3D"background-color: rgb(255, 255, 255); =
font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida =
Grande', sans-serif; font-size: 16px;"><div =
id=3D"yui_3_16_0_1_1419335463528_18457" dir=3D"ltr">I tried that as =
well. Does not work. Perhaps my transistor model is bad. I will try to =
follow the example shown on geda:ngspice:</div><div =
id=3D"yui_3_16_0_1_1419335463528_18472" dir=3D"ltr"><a =
id=3D"yui_3_16_0_1_1419335463528_18471" =
href=3D"http://wiki.geda-project.org/geda:ngspice_and_gschem">geda:ngspice=
_and_gschem [gEDA Project Wiki]</a></div><div dir=3D"ltr">and see =
whether it compiles.<br></div><div style=3D"width:450px; font-family: =
'Georgia', 'Times', 'Times New Roman', 'serif';margin-top:5px; =
margin-bottom: 5px; background-color: #ffffff;" id=3D"enhancrCard_0" =
class=3D"link-enhancr-attachment link-enhancr-element" =
contenteditable=3D"false"><table class=3D"link-enhancr-element" =
style=3D"width:450px; height:170px; position: relative; display: block;" =
border=3D"0" cellpadding=3D"0" cellspacing=3D"0"><tbody><tr =
class=3D"link-enhancr-element"><td class=3D"link-enhancr-element" =
colspan=3D"8" style=3D"height: 1px; background-color: #e5e5e5; =
font-size: 1px; border-collapse: collapse;"><div =
class=3D"link-enhancr-element" style=3D"height: 1px; background-color: =
#e5e5e5; font-size: 1px; line-height:0px;">&nbsp;</div></td></tr><tr =
class=3D"link-enhancr-element"><td rowspan=3D"5" =
class=3D"link-enhancr-element" style=3D"width: 1px; background-color: =
#e5e5e5; font-size: 1pt; border-collapse: collapse;"><div =
class=3D"link-enhancr-element" style=3D"width: 1px; background-color: =
#e5e5e5; font-size: 1pt;">&nbsp;</div></td><td =
class=3D"link-enhancr-element" rowspan=3D"5" style=3D"vertical-align: =
middle; width: 168px; height: 168px; background-color: =
#000000;border-collapse: collapse;"><div class=3D"link-enhancr-element" =
style=3D"width: 168px;" align=3D"center"><a =
href=3D"http://wiki.geda-project.org/geda:ngspice_and_gschem" =
class=3D"link-enhancr-card-urlWrapper link-enhancr-element" =
style=3D"text-decoration: none !important;"><img alt=3D"image" =
src=3D"http://wiki.geda-project.org/_media/geda:simple1.png" =
class=3D"link-enhancr-thumbnail-image link-enhancr-element" =
style=3D"display: block; margin: auto;" height=3D"113" =
width=3D"168"></a></div></td><td rowspan=3D"5" =
class=3D"link-enhancr-element" style=3D"width: 1px; background-color: =
#e5e5e5; font-size: 0pt; border-collapse: collapse;"><div =
class=3D"link-enhancr-element" style=3D"width: 1px; background-color: =
#e5e5e5; font-size: 1pt;">&nbsp;</div></td><td rowspan=3D"5" =
class=3D"link-enhancr-element" style=3D"width: 14px; background-color: =
#ffffff; font-size: 0pt; border-collapse: collapse;"><div =
class=3D"link-enhancr-element" style=3D"width: 14px; background-color: =
#ffffff; font-size: 14pt;">&nbsp;</div></td><td colspan=3D"2" =
class=3D"link-enhancr-element" style=3D"height: 6px; background-color: =
#ffffff; font-size: 0pt; border-collapse: collapse;"><div =
class=3D"link-enhancr-element" style=3D"height: 6px; background-color: =
#ffffff; font-size: 6pt;">&nbsp;</div></td><td rowspan=3D"5" =
class=3D"link-enhancr-element" style=3D"width: 20px; background-color: =
#ffffff; font-size: 0pt; border-collapse: collapse;"><div =
class=3D"link-enhancr-element" style=3D"width: 20px; background-color: =
#ffffff; font-size: 20pt;">&nbsp;</div></td><td =
class=3D"link-enhancr-element" rowspan=3D"5" style=3D"width: 1px; =
background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;" =
width=3D"1"><div class=3D"link-enhancr-element" style=3D"width: 1px; =
background-color: #e5e5e5; font-size: =
1pt;">&nbsp;</div></td></tr><tr><td class=3D"link-enhancr-element" =
colspan=3D"2" style=3D"width: 100%; vertical-align: middle; font-family: =
'Georgia', 'Times', 'Times New Roman', 'serif';"><div =
class=3D"link-enhancr-text-part link-enhancr-element" =
style=3D"line-height:16.5px; background-color: #ffffff; height: 135px; =
width: 245px;"><div class=3D"link-enhancr-element" style=3D"word-wrap: =
break-word; word-break: break-all;"><span class=3D"link-enhancr-element =
icon  icon-shrink link-enhancr-toggle"></span><span =
class=3D"link-enhancr-element icon icon-close =
link-enhancr-delete"></span><a =
href=3D"http://wiki.geda-project.org/geda:ngspice_and_gschem" =
class=3D"link-enhancr-card-urlWrapper link-enhancr-element" =
style=3D"line-height: 100%; font-size: 18px; display: block; =
text-decoration: none !important;"><span class=3D"link-enhancr-element =
link-enhancr-card-title" style=3D"margin: 0px 0px 3px; font-weight: =
normal; font-size: 18px; line-height: 21px; max-height: 43px; display: =
inline-block; overflow: hidden !important;">geda:ngspice_and_gschem =
[gEDA Project Wiki]</span></a><div style=3D"font-size: 13px; =
line-height: 20px; color: #999999; max-height: 81px; font-family: =
'Georgia', 'Times', 'Times New Roman', 'serif';overflow: hidden;" =
class=3D"link-enhancr-card-description link-enhancr-element">Table of =
Contents Overview Setup Adding some SPICE stuff Simulation Translations =
of this page are also available in the following languages: =
=D0=A0=D1=83=D1=81=D1=81=D0=BA=D0=B8=D0=B9. Overview =
</div></div></div></td></tr><tr><td colspan=3D"2" =
class=3D"link-enhancr-element" style=3D"height: 4px; background-color: =
#ffffff; font-size: 0pt; border-collapse: collapse;"><div =
class=3D"link-enhancr-element" style=3D"height: 4px; background-color: =
#ffffff; font-size: 4pt;"></div></td></tr><tr><td =
class=3D"link-enhancr-element" style=3D"vertical-align: middle; =
font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div =
class=3D"link-enhancr-element" style=3D"font-size: 0pt;"><a =
href=3D"http://wiki.geda-project.org/geda:ngspice_and_gschem" =
class=3D"link-enhancr-card-url link-enhancr-element" =
style=3D"text-decoration: none !important; cursor: pointer !important;" =
target=3D"_blank"><span id=3D"yui_3_16_0_1_1419335463528_18488" =
class=3D"link-enhancr-element link-enhancr-view-on" style=3D"display: =
inline-block; line-height: 11px; max-width: 145px; min-width: 85px; =
overflow: hidden; max-height: 13px; word-break: break-all;"><span =
class=3D"link-enhancr-element link-enhancr-mobile-no-resize" =
style=3D"vertical-align:middle; font-size: 9px; line-height: 11px; =
color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; =
-webkit-text-size-adjust:none; text-size-adjust:none;">View on <span =
style=3D"font-weight: bold" =
class=3D"link-enhancr-view-on-domain">wiki.geda-project.org</span></span><=
/span></a></div></td><td class=3D"link-enhancr-element" =
style=3D"vertical-align: middle; width: 100px; font-family: 'Arial', =
'Helvetica Neue', 'Helvetica', 'sans-serif';"><div =
class=3D"link-enhancr-element link-enhancr-preview-wrapper" =
style=3D"max-width: 100px; min-width: 80px; overflow: hidden; =
text-align: right; line-height: 11px; max-height: 13px; font-size: =
0pt;"><span class=3D"link-enhancr-element link-enhancr-preview-by =
link-enhancr-mobile-no-resize" style=3D"vertical-align:middle; =
font-size: 9px; line-height: 11px; color: #999999; =
-moz-text-size-adjust: none; -ms-text-size-adjust: none; =
-webkit-text-size-adjust:none; text-size-adjust:none;">Preview by =
Yahoo</span></div></td></tr><tr><td colspan=3D"2" =
class=3D"link-enhancr-element" style=3D"height: 9px; background-color: =
#ffffff; font-size: 0pt; border-collapse: collapse;"><div =
class=3D"link-enhancr-element" style=3D"height: 9px; background-color: =
#ffffff; font-size: 9pt;"></div></td></tr><tr =
class=3D"link-enhancr-element"><td class=3D"link-enhancr-element" =
colspan=3D"8" style=3D"height: 1px; background-color: #e5e5e5; =
font-size: 1px; border-collapse: collapse;"><div =
class=3D"link-enhancr-element" style=3D"height: 1px; background-color: =
#e5e5e5; font-size: 1px; =
line-height:0px">&nbsp;</div></td></tr></tbody></table></div><div =
id=3D"yui_3_16_0_1_1419335463528_18455"><span></span></div> <div =
class=3D"qtdSeparateBR"><br><br></div><div style=3D"display: block;" =
class=3D"yahoo_quoted"> <div style=3D"font-family: HelveticaNeue, =
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: =
16px;"> <div style=3D"font-family: HelveticaNeue, Helvetica Neue, =
Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div =
dir=3D"ltr"> <font face=3D"Arial" size=3D"2"> On Tuesday, December 23, =
2014 2:19 PM, Francesc Vila &lt;<a =
href=3D"mailto:francesc DOT vila AT imb-cnm DOT csic DOT es">francesc DOT vila AT imb-cnm DOT csic DOT e=
s</a>&gt; wrote:<br> </font> </div>  <br><br> <div =
class=3D"y_msg_container"><div =
id=3D"yiv1420367839"><div>Hello,</div><div><br clear=3D"none"></div>If =
you look at the generated netlist, the device still starts using the =
letter =E2=80=98M=E2=80=99 not the X. So ngspice looks for a MOS =
transistor instead of the subcircuit.<div><br =
clear=3D"none"></div><div>AFAIK, to really fix the problem you should =
check the value of the attribute =E2=80=9Cdevice" on the symbol. It =
should be SUBCKT_PMOS or SUBCKT_NMOS instead of PMOS_TRANSISTOR or =
NMOS_TRANSISTOR. Then, the spice-sdb backend should generate the correct =
device line.</div><div><br clear=3D"none"></div><div>Best =
regards,</div><div>Francesc</div><div><blockquote =
type=3D"cite"></blockquote></div><div class=3D"yiv1420367839yqt5950408510"=
 id=3D"yiv1420367839yqt05437"><br clear=3D"none"><div><div>On 23 Dec =
2014, at 13:39, Johnny Cage &lt;<a rel=3D"nofollow" shape=3D"rect" =
ymailto=3D"mailto:hellbourne AT yahoo DOT com" target=3D"_blank" =
href=3D"mailto:hellbourne AT yahoo DOT com">hellbourne AT yahoo DOT com</a>&gt; =
wrote:</div><br class=3D"yiv1420367839Apple-interchange-newline" =
clear=3D"none"><blockquote type=3D"cite"><div =
style=3D"background-color:rgb(255, 255, 255);font-family:HelveticaNeue, =
'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', =
sans-serif;font-size:16px;"><div =
id=3D"yiv1420367839yui_3_16_0_1_1419335463528_11644">Well, I changed it =
to the following:</div><div><br =
clear=3D"none"></div><blockquote><blockquote><div dir=3D"ltr" =
id=3D"yiv1420367839yui_3_16_0_1_1419335463528_11693">* gnetlist -g =
spice-sdb -o <a rel=3D"nofollow" shape=3D"rect" target=3D"_blank" =
href=3D"http://spice.net/">spice.net</a> TIC_based_CF739.sch<br =
class=3D"yiv1420367839" style=3D"" =
clear=3D"none">*********************************************************<b=
r class=3D"yiv1420367839" style=3D"" clear=3D"none">* Spice file =
generated by =
gnetlist&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *<br =
class=3D"yiv1420367839" style=3D"" clear=3D"none">* spice-sdb version =
4.28.2007 by SDB =
--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; *<br class=3D"yiv1420367839" style=3D"" =
clear=3D"none">* provides advanced spice netlisting =
capability.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *<br =
class=3D"yiv1420367839" style=3D"" clear=3D"none">* Documentation at <a =
rel=3D"nofollow" shape=3D"rect" target=3D"_blank" =
href=3D"http://www.brorson.com/gEDA/SPICE/">http://www.brorson.com/gEDA/SP=
ICE/</a>&nbsp;&nbsp; *<br class=3D"yiv1420367839" style=3D"" =
clear=3D"none">*********************************************************<b=
r class=3D"yiv1420367839" style=3D"" clear=3D"none">*vvvvvvvv&nbsp; =
Included SPICE model from =
/home/af3/Dropbox/Wrachtrup/simulations/spice/NE3210S01.mod vvvvvvvv<br =
class=3D"yiv1420367839" style=3D"" clear=3D"none">.subckt NE3210S01_v1 =
Gate Drain Source Ugw=3D160um Ngf=3D1<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">.param CGD=3D1.4e-15<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">.param CGS=3D60e-15<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">.param CSD=3D80e-15<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">.param LG=3D0.82e-9<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">.param LD=3D0.74e-9<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">.param LS=3D0.11e-9<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">L1 Drain D 'LD'<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">L2 Gate G 'LG'<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">L3 Source S 'LS'<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">C1 Gate Drain 'CGD'<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">C2 Gate Source 'CGS'<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">C3 Drain Source 'CSD'<br class=3D"yiv1420367839"=
 style=3D"" clear=3D"none">J1 D G S NE3210S01 Ugw=3D160 N=3D1 M=3D1<br =
class=3D"yiv1420367839" style=3D"" clear=3D"none">.model NE3210S01 njf =
level=3D15 <br class=3D"yiv1420367839" style=3D"" clear=3D"none">+ =
VTO=3D-0.95 GAMMA=3D0.055 VGO=3D-0.323 VCH=3D1.03 GMMAX=3D0.08 VDSO=3D2 =
VSAT=3D0.44 KAPA=3D0.009 PEFF=3D101<br class=3D"yiv1420367839" style=3D"" =
clear=3D"none">+ VTSO=3D-10 VCO=3D-0.245 MU=3D0.001 VBA=3D1 VBC=3D0.5 =
DELTGM=3D0.17 ALPHA=3D0.1<br class=3D"yiv1420367839" style=3D"" =
clear=3D"none">+ RDB=3D1.0e9 CBS=3D160e-15 GDBM=3D60e-6 KDB=3D100 =
VDSM=3D100 GMMAXAC=3D0.082 VTOAC=3D-0.92<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">+ GAMMAAC=3D0.06 KAPAAC=3D0.002 PEFFAC=3D294 =
VTSOAC=3D-10 DELTGMAC=3D0.17<br class=3D"yiv1420367839" style=3D"" =
clear=3D"none">+ IS=3D26e-12 N=3D1.5 KBK=3D0 IDSOC=3D0.1 VBR=3D15 =
NBR=3D2<br class=3D"yiv1420367839" style=3D"" clear=3D"none">+ RS=3D0.8 =
RG=3D2.0 RD=3D1.0 Ugw=3D160 Ngf=3D1<br class=3D"yiv1420367839" style=3D"" =
clear=3D"none">+ C11O=3D188e-15 C11TH=3D129e-15 VINFL=3D-0.706 =
DELTGS=3D0.527 DELTDS=3D0.287 LAMBDA=3D0.03 <br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">+ C12SAT=3D19e-15 CGDSAT=3D20e-15 RIS=3D4.8 =
RID=3D0.001 TAU=3D2.1e-12 CDSO=3D124e-15<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">.ends NE3210S01_v1<br class=3D"yiv1420367839" =
style=3D"" clear=3D"none"><br class=3D"yiv1420367839" style=3D"" =
clear=3D"none"><br class=3D"yiv1420367839" style=3D"" clear=3D"none"><br =
class=3D"yiv1420367839" style=3D"" clear=3D"none">*^^^^^^^^&nbsp; End of =
included SPICE model from =
/home/af3/Dropbox/Wrachtrup/simulations/spice/NE3210S01.mod ^^^^^^^^<br =
class=3D"yiv1420367839" style=3D"" clear=3D"none">*<br =
class=3D"yiv1420367839" style=3D"" clear=3D"none">*=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D&nbsp; Begin SPICE netlist of main design =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br class=3D"yiv1420367839" style=3D""=
 clear=3D"none">.options TEMP=3D25<br class=3D"yiv1420367839" style=3D"" =
clear=3D"none">.INCLUDE =
/home/af3/Dropbox/Wrachtrup/simulations/spice/simulation.cmd<br =
class=3D"yiv1420367839" style=3D"" clear=3D"none">VDS1 1 0 DC 2V<br =
class=3D"yiv1420367839" style=3D"" clear=3D"none">Vac1 Vin 0 DC 0 AC =
10MV SIN(0 1MV 32KHZ)<br class=3D"yiv1420367839" style=3D"" =
clear=3D"none">C1 0 1 47nF&nbsp; <br class=3D"yiv1420367839" style=3D"" =
clear=3D"none">R2 0 Vin 10MEG&nbsp; <br class=3D"yiv1420367839" style=3D""=
 clear=3D"none">R1 0 Vout 1.5K&nbsp; <br class=3D"yiv1420367839" =
style=3D"" clear=3D"none">MX1 1 Vin Vout Vout NE3210S01<br =
class=3D"yiv1420367839" style=3D"" clear=3D"none">.end<br =
clear=3D"none"></div></blockquote></blockquote><div dir=3D"ltr" =
id=3D"yiv1420367839yui_3_16_0_1_1419335463528_11643"><span>Still does =
not work and with the same error message. Any ideas?</span></div><div =
dir=3D"ltr"><br clear=3D"none"><span></span></div><div =
dir=3D"ltr"><span></span></div> <div =
class=3D"yiv1420367839qtdSeparateBR"><br clear=3D"none"><br =
clear=3D"none"></div><div class=3D"yiv1420367839yahoo_quoted" =
style=3D"display:block;"> <div style=3D"font-family:HelveticaNeue, =
Helvetica Neue, Helvetica, Arial, Lucida Grande, =
sans-serif;font-size:16px;"> <div style=3D"font-family:HelveticaNeue, =
Helvetica Neue, Helvetica, Arial, Lucida Grande, =
sans-serif;font-size:16px;"> <div dir=3D"ltr"> <font face=3D"Arial" =
size=3D"2"> On Tuesday, December 23, 2014 1:24 PM, myken &lt;<a =
rel=3D"nofollow" shape=3D"rect" ymailto=3D"mailto:myken AT iae DOT nl" =
target=3D"_blank" href=3D"mailto:myken AT iae DOT nl">myken AT iae DOT nl</a>&gt; =
wrote:<br clear=3D"none"> </font> </div>  <br clear=3D"none"><br =
clear=3D"none"> <div class=3D"yiv1420367839y_msg_container"><div =
id=3D"yiv1420367839">
    <div class=3D"yiv1420367839moz-cite-prefix">Hello John,<br =
clear=3D"none">
      <br clear=3D"none">
      To my knowledge, if you use a SUBCKT the component in question
      should have a X? as a refdes.<br clear=3D"none">
      <br clear=3D"none">
      Don't know what will happen if the name of the SUBCKT is the same
      as a MODEL name inside the SUBCKT, never tried it.<br =
clear=3D"none">
      <br clear=3D"none">
      Merry Christmas,<br clear=3D"none">
      Robert Zeegers.<br clear=3D"none">
      <br clear=3D"none">
      <br clear=3D"none">
      On 23/12/14 12:56, Johnny Cage wrote:<br clear=3D"none">
    </div>
    <div class=3D"yiv1420367839yqt0702701014" =
id=3D"yiv1420367839yqt34040"><blockquote type=3D"cite">
      <div style=3D"background-color:rgb(255, 255, =
255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, =
'Lucida Grande', sans-serif;font-size:16px;">
        <div>I am trying to ngspice the following code:</div>
        <div id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9336"><br =
clear=3D"none">
        </div>
        <blockquote id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9335">
          <div id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9254">* =
gnetlist -g
            spice-sdb -o <a rel=3D"nofollow" shape=3D"rect" =
target=3D"_blank" href=3D"http://spice.net/">spice.net</a> =
TIC_based_CF739.sch<br clear=3D"none">
            *********************************************************<br =
clear=3D"none">
            * Spice file generated by gnetlist *<br clear=3D"none">
            * spice-sdb version 4.28.2007 by SDB -- *<br clear=3D"none">
            * provides advanced spice netlisting capability. *<br =
clear=3D"none">
            * Documentation at <a rel=3D"nofollow" shape=3D"rect" =
class=3D"yiv1420367839moz-txt-link-freetext" target=3D"_blank" =
href=3D"http://www.brorson.com/gEDA/SPICE/">http://www.brorson.com/gEDA/SP=
ICE/</a> *<br clear=3D"none">
            *********************************************************<br =
clear=3D"none">
            *vvvvvvvv Included SPICE model from
            /home/af3/Dropbox/Wrachtrup/simulations/spice/NE3210S01.mod
            vvvvvvvv<br clear=3D"none">
            .SUBCKT NE3210S01 Gate Drain Source Ugw=3D160um Ngf=3D1<br =
clear=3D"none">
            .param CGD=3D1.4e-15<br clear=3D"none">
            .param CGS=3D60e-15<br clear=3D"none">
            .param CSD=3D80e-15<br clear=3D"none">
            .param LG=3D0.82e-9<br clear=3D"none">
            .param LD=3D0.74e-9<br clear=3D"none">
            .param LS=3D0.11e-9<br clear=3D"none">
            L1 Drain D 'LD'<br clear=3D"none">
            L2 Gate G 'LG'<br clear=3D"none">
            L3 Source S 'LS'<br clear=3D"none">
            C1 Gate Drain 'CGD'<br clear=3D"none">
            C2 Gate Source 'CGS'<br clear=3D"none">
            C3 Drain Source 'CSD'<br clear=3D"none">
            J1 D G S NE3210S01 Ugw=3D160 N=3D1 M=3D1<br clear=3D"none">
            .MODEL NE3210S01 njf level=3D15 <br clear=3D"none">
            + VTO=3D-0.95 GAMMA=3D0.055 VGO=3D-0.323 VCH=3D1.03 =
GMMAX=3D0.08
            VDSO=3D2 VSAT=3D0.44 KAPA=3D0.009 PEFF=3D101<br =
clear=3D"none">
            + VTSO=3D-10 VCO=3D-0.245 MU=3D0.001 VBA=3D1 VBC=3D0.5 =
DELTGM=3D0.17
            ALPHA=3D0.1<br clear=3D"none">
            + RDB=3D1.0e9 CBS=3D160e-15 GDBM=3D60e-6 KDB=3D100 VDSM=3D100
            GMMAXAC=3D0.082 VTOAC=3D-0.92<br clear=3D"none">
            + GAMMAAC=3D0.06 KAPAAC=3D0.002 PEFFAC=3D294 VTSOAC=3D-10
            DELTGMAC=3D0.17<br clear=3D"none">
            + IS=3D26e-12 N=3D1.5 KBK=3D0 IDSOC=3D0.1 VBR=3D15 NBR=3D2<br =
clear=3D"none">
            + RS=3D0.8 RG=3D2.0 RD=3D1.0 Ugw=3D160 Ngf=3D1<br =
clear=3D"none">
            + C11O=3D188e-15 C11TH=3D129e-15 VINFL=3D-0.706 DELTGS=3D0.527=

            DELTDS=3D0.287 LAMBDA=3D0.03 <br clear=3D"none">
            + C12SAT=3D19e-15 CGDSAT=3D20e-15 RIS=3D4.8 RID=3D0.001 =
TAU=3D2.1e-12
            CDSO=3D124e-15<br clear=3D"none">
            .ENDS NE3210S01<br clear=3D"none">
            <br clear=3D"none">
            <br clear=3D"none">
            <br clear=3D"none">
            *^^^^^^^^ End of included SPICE model from
            /home/af3/Dropbox/Wrachtrup/simulations/spice/NE3210S01.mod
            ^^^^^^^^<br clear=3D"none">
            *<br clear=3D"none">
            *=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Begin SPICE =
netlist of main design
            =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br clear=3D"none">
            .options TEMP=3D25<br clear=3D"none">
            .INCLUDE
            =
/home/af3/Dropbox/Wrachtrup/simulations/spice/simulation.cmd<br =
clear=3D"none">
            VDS1 1 0 DC 2V<br clear=3D"none">
            Vac1 Vin 0 DC 0 AC 10MV SIN(0 1MV 32KHZ)<br clear=3D"none">
            C1 0 1 47nF <br clear=3D"none">
            R2 0 Vin 10MEG <br clear=3D"none">
            R1 0 Vout 1.5K <br clear=3D"none">
            MQ1 1 Vin Vout Vout NE3210S01 <br clear=3D"none">
            .end</div>
        </blockquote>
        <div dir=3D"ltr" =
id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9444">However, on
          the results.txt file I get the following message:<br =
clear=3D"none">
        </div>
        <div id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9447"><br =
clear=3D"none">
        </div>
        <div id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9445">Circuit: =
* gnetlist -g
          spice-sdb -o <a rel=3D"nofollow" shape=3D"rect" =
target=3D"_blank" href=3D"http://spice.net/">spice.net</a> =
tic_based_cf739.sch<br clear=3D"none">
          <br clear=3D"none">
          Error on line 46 : mq1 1 vin vout vout ne3210s01<br =
clear=3D"none">
          Unable to find definition of model ne3210s01 - default assumed
          <br clear=3D"none">
        </div>
        <div id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9448"><br =
clear=3D"none">
        </div>
        <div dir=3D"ltr" =
id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9449">Does anyone
          know what the problem is?</div>
        <div dir=3D"ltr" =
id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9450"><br clear=3D"none">
        </div>
        <div dir=3D"ltr" =
id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9451">Merry
          Christmas,</div>
        <div dir=3D"ltr" =
id=3D"yiv1420367839yui_3_16_0_1_1419335463528_9452">John
          Hellbourne<br clear=3D"none">
        </div>
      </div>
    </blockquote></div>
    <br clear=3D"none">
  </div><br clear=3D"none"><br clear=3D"none"></div>  </div> </div>  =
</div> </div></blockquote></div><br =
clear=3D"none"></div></div><br><br></div>  </div> </div>  </div> =
</div></blockquote></div><br><div apple-content-edited=3D"true">
<span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px;"><p style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica">John =
Doty<span class=3D"Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;<span class=3D"Apple-converted-space">&nbsp;</span><span =
class=3D"Apple-converted-tab">&nbsp; &nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span></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/">http://www.noqsi.com/</a></p><p =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica"><a =
href=3D"mailto:jpd AT noqsi DOT com">jpd AT noqsi DOT com</a></font></p><br =
class=3D"Apple-interchange-newline"></span>
</div>
<br></div></body></html>=

--Apple-Mail=_D674C390-366B-4287-9B53-1032EF15D158--

- Raw text -


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