Mail Archives: geda-user/2014/12/23/09:07:23
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=yahoo.com; s=s2048; t=1419343609; bh=vy6B9PRr9t4a+9i6BUfEkVUBqk5mA8OXfMb8TtCdUB8=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=ix+3RQ00EITMIYjf/PodVgjoVWnLKetN2v9ERZAZS16WPqJFERu2NCDvWHK1FRsdbp9jgxtfoByej/O48Jlt0QWY6blnPOsGc+xSgCA1hULtFablZmK3g4GPbmLFIL+tOyj73I6Wj0G5ne+0Cy51psCeHa4FKPU7t2QWRielWdjUAXE2P6hqYZFa/nHqxj67GQGHbb5sze4srKILKkd5Reovr3cmh2PPJ6rqT1/W5dh+PxBCi/LXUTR/TKPI6GapFVuBv0ST2/DgYVdGqmWGo6Y+LJF+tw8NLAuhjz2dX061OiS8V/aVZSgTWeTW0DFQpfu4DKxpkw/+Xb5vOUVb+A==
|
DomainKey-Signature: | a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com;
|
| b=pwVz6lhRC8IDLXaiT6blHTADLqV5TBzEMIFnTs8Jzix6TnF6EZsailX4pIRq9OCk5v93ntQIfVittKRnYAJ2l8KF/P0I1++43fnx011yJTCer1y4hudziYEBVpzDWpwf1clOMdquIl10Zu6v9T/s6YLyGwO3o5C1rqgvWLXbcKQyBNSo7drVM1DRFJmHuO1a8ZLrVsolsOmQSuDfw4qn7fGyH4tI7T3LswAINJsM+QBPDHWp839NU5j/dOb9FkTWHFpaEctKqiKv7CU1u0lEk9xzMhiY7CvRHOjlJrhGUVwIDA4/RBb0QB/znOTzQvbCwf4Y43ehGDWfcfPB+vB+aw==;
|
X-Yahoo-Newman-Property: | ymail-4
|
X-Yahoo-Newman-Id: | 579470 DOT 47382 DOT bm AT omp1035 DOT mail DOT gq1 DOT yahoo DOT com
|
X-YMail-OSG: | 7nkRUzIVM1lxAUAjXPSAge5F6jKJ8ZseM.fxjUb8NPeFPkXRBiypx52gUDOFb4n
|
| G1Oxi_LoK.yxoHLq6I3PCPBnV_mKaV3_oUJOS57ekcP0O6z5IBhP1lwMtt45bsP9gd5VuVjFei0D
|
| HmzC_83ADOpm8uvBGRWjmpHm1SsNMOoSBPFKBK8v1nXXo2c_gS4lDmOYhwVjsuaEsgHmKuC4AO1b
|
| .FansOlpaAMDp78jNGWkL_xQnW6e4Q4uNJiiVtxu3A8TvDNEc3rjrPbpzPwqEwmUlJ6K.znAsck3
|
| ciuHe2LqjhoiayZRxgElB9c4ZXaRJ25isnschmq0vp_idnOIxx0MyKV1oEHVmqWX7uvlo.MtGcPQ
|
| zM1b17HSvEXUllGS5S9IpKYqDLqaRdOaRrbfe0Zfjat4GZXd5etRkl9A_0BBfweFNh9O9P.RfXc8
|
| ja3sP.MJK4Q9U.2FscVUnUnAiZzfzPstO2EXaNdOgyviSIH6C51dxO6jTcxJY0MChlS92f1n.kPd
|
| vW.czBBMl84G0U4I5snCI1hQyVMgbt.U1JoZmnJjPDCe8TqvkRXPB2ZZ3Rc3R0KzHYtB.wttNqoz
|
| mEFiOlyb_0EI83WiQ6BxeJXa_P05hrq9fjTKoiTVX7ZY5u16gdm7L6LRuEyzYLRo0B8XdXYa_pjo
|
| 8q1wJFI50b9OzWTCACKZ3aPoExLb.8TIKp761ZJhe
|
Date: | Tue, 23 Dec 2014 14:03:56 +0000 (UTC)
|
From: | Johnny Cage <hellbourne AT yahoo DOT com>
|
To: | "geda-user AT delorie DOT com" <geda-user AT delorie DOT com>
|
Message-ID: | <1112363134.147765.1419343436582.JavaMail.yahoo@jws10721.mail.gq1.yahoo.com>
|
In-Reply-To: | <7CEB5321-E3F6-45F3-B37B-A81FFD214FA6@imb-cnm.csic.es>
|
References: | <7CEB5321-E3F6-45F3-B37B-A81FFD214FA6 AT imb-cnm DOT csic DOT es>
|
Subject: | Re: [geda-user] Unable to find definition of model...
|
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
|
------=_Part_147764_1452256131.1419343436564
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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_gsche=
m [gEDA Project Wiki]and see whether it compiles.
| =C2=A0 |
| =C2=A0 | | =C2=A0 | =C2=A0 | =C2=A0 | =C2=A0 | =C2=A0 |
| geda:ngspice_and_gschem [gEDA Project Wiki]Table of Contents Overview Set=
up Adding some SPICE stuff Simulation Translations of this page are also av=
ailable 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 |
| |
| =C2=A0 |
=20
On Tuesday, December 23, 2014 2:19 PM, Francesc Vila <francesc DOT vila AT im=
b-cnm.csic.es> wrote:
=20
Hello,
If you look at the generated netlist, the device still starts using the let=
ter =E2=80=98M=E2=80=99 not the X. So ngspice looks for a MOS transistor in=
stead of the subcircuit.
AFAIK, to really fix the problem you should check the value of the attribut=
e =E2=80=9Cdevice" on the symbol. It should be SUBCKT_PMOS or SUBCKT_NMOS i=
nstead of PMOS_TRANSISTOR or NMOS_TRANSISTOR. Then, the spice-sdb backend s=
hould generate the correct device line.
Best regards,Francesc
On 23 Dec 2014, at 13:39, Johnny Cage <hellbourne AT yahoo DOT com> wrote:
Well, I changed it to the following:
* gnetlist -g spice-sdb -o spice.net TIC_based_CF739.sch
*********************************************************
* Spice file generated by gnetlist=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 *
* spice-sdb version 4.28.2007 by SDB --=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 *
* provides advanced spice netlisting capability.=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 *
* Documentation at http://www.brorson.com/gEDA/SPICE/=C2=A0=C2=A0 *
*********************************************************
*vvvvvvvv=C2=A0 Included SPICE model from /home/af3/Dropbox/Wrachtrup/simul=
ations/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 V=
SAT=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.0=
82 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.2=
87 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
*^^^^^^^^=C2=A0 End of included SPICE model from /home/af3/Dropbox/Wrachtru=
p/simulations/spice/NE3210S01.mod ^^^^^^^^
*
*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=C2=A0 Begin SPICE netlist of ma=
in 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=C2=A0=20
R2 0 Vin 10MEG=C2=A0=20
R1 0 Vout 1.5K=C2=A0=20
MX1 1 Vin Vout Vout NE3210S01
.end
Still does not work and with the same error message. Any ideas?
=20
On Tuesday, December 23, 2014 1:24 PM, myken <myken AT iae DOT nl> wrote:
=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 MOD=
EL name inside the SUBCKT, never tried it.
=20
Merry Christmas,
Robert Zeegers.
=20
=20
On 23/12/14 12:56, Johnny Cage wrote:
=20
I am trying to ngspice the following code:=20
=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/simulation=
s/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/sim=
ulations/spice/NE3210S01.mod ^^^^^^^^
*
*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Begin SPICE netlist of main de=
sign =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=20
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
------=_Part_147764_1452256131.1419343436564
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"color:#000; background-color:#fff; font-family:He=
lveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;fo=
nt-size:16px"><div id=3D"yui_3_16_0_1_1419335463528_18457" dir=3D"ltr">I tr=
ied 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_18=
471" href=3D"http://wiki.geda-project.org/geda:ngspice_and_gschem">geda:ngs=
pice_and_gschem [gEDA Project Wiki]</a></div><div dir=3D"ltr">and see wheth=
er it compiles.<br></div><div style=3D"width:450px; font-family: 'Georgia',=
'Times', 'Times New Roman', 'serif';margin-top:5px; margin-bottom: 5px; ba=
ckground-color: #ffffff;" id=3D"enhancrCard_0" class=3D"link-enhancr-attach=
ment link-enhancr-element" contenteditable=3D"false"><table class=3D"link-e=
nhancr-element" style=3D"width:450px; height:170px; position: relative; dis=
play: block;" border=3D"0" cellpadding=3D"0" cellspacing=3D"0"><tbody><tr c=
lass=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;"> </d=
iv></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;"> </di=
v></td><td class=3D"link-enhancr-element" rowspan=3D"5" style=3D"vertical-a=
lign: middle; width: 168px; height: 168px; background-color: #000000;border=
-collapse: collapse;"><div class=3D"link-enhancr-element" style=3D"width: 1=
68px;" align=3D"center"><a href=3D"http://wiki.geda-project.org/geda:ngspic=
e_and_gschem" class=3D"link-enhancr-card-urlWrapper link-enhancr-element" s=
tyle=3D"text-decoration: none !important; color: #000000 !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"displa=
y: block; margin: auto;" height=3D"113" width=3D"168"></a></div></td><td ro=
wspan=3D"5" class=3D"link-enhancr-element" style=3D"width: 1px; background-=
color: #e5e5e5; font-size: 0pt; border-collapse: collapse;"><div class=3D"l=
ink-enhancr-element" style=3D"width: 1px; background-color: #e5e5e5; font-s=
ize: 1pt;"> </div></td><td rowspan=3D"5" class=3D"link-enhancr-element=
" style=3D"width: 14px; background-color: #ffffff; font-size: 0pt; border-c=
ollapse: collapse;"><div class=3D"link-enhancr-element" style=3D"width: 14p=
x; background-color: #ffffff; font-size: 14pt;"> </div></td><td colspa=
n=3D"2" class=3D"link-enhancr-element" style=3D"height: 6px; background-col=
or: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class=3D"link=
-enhancr-element" style=3D"height: 6px; background-color: #ffffff; font-siz=
e: 6pt;"> </div></td><td rowspan=3D"5" class=3D"link-enhancr-element" =
style=3D"width: 20px; background-color: #ffffff; font-size: 0pt; border-col=
lapse: collapse;"><div class=3D"link-enhancr-element" style=3D"width: 20px;=
background-color: #ffffff; font-size: 20pt;"> </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 clas=
s=3D"link-enhancr-element" style=3D"width: 1px; background-color: #e5e5e5; =
font-size: 1pt;"> </div></td></tr><tr><td class=3D"link-enhancr-elemen=
t" colspan=3D"2" style=3D"width: 100%; vertical-align: middle; font-family:=
'Georgia', 'Times', 'Times New Roman', 'serif';"><div class=3D"link-enhanc=
r-text-part link-enhancr-element" style=3D"line-height:16.5px; background-c=
olor: #ffffff; height: 135px; width: 245px;"><div class=3D"link-enhancr-ele=
ment" style=3D"word-wrap: break-word; word-break: break-all;"><span class=
=3D"link-enhancr-element icon icon-shrink link-enhancr-toggle"></span><spa=
n 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"text-decoration=
: none !important; color: #000000 !important; line-height: 100%; font-size:=
18px; display: block;"><span class=3D"link-enhancr-element link-enhancr-ca=
rd-title" style=3D"margin: 0; font-weight: normal;margin-bottom: 3px; font-=
size: 18px; line-height: 21px; max-height: 43px; color: #000000; overflow: =
hidden !important; display: inline-block;">geda:ngspice_and_gschem [gEDA Pr=
oject Wiki]</span></a><div style=3D"font-size: 13px; line-height: 20px; col=
or: #999999; max-height: 81px; font-family: 'Georgia', 'Times', 'Times New =
Roman', 'serif';overflow: hidden;" class=3D"link-enhancr-card-description l=
ink-enhancr-element">Table of Contents Overview Setup Adding some SPICE stu=
ff 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></di=
v></div></td></tr><tr><td colspan=3D"2" class=3D"link-enhancr-element" styl=
e=3D"height: 4px; background-color: #ffffff; font-size: 0pt; border-collaps=
e: collapse;"><div class=3D"link-enhancr-element" style=3D"height: 4px; bac=
kground-color: #ffffff; font-size: 4pt;"></div></td></tr><tr><td class=3D"l=
ink-enhancr-element" style=3D"vertical-align: middle; font-family: 'Arial',=
'Helvetica Neue', 'Helvetica', 'sans-serif';"><div class=3D"link-enhancr-e=
lement" style=3D"font-size: 0pt;"><a href=3D"http://wiki.geda-project.org/g=
eda:ngspice_and_gschem" class=3D"link-enhancr-card-url link-enhancr-element=
" style=3D"color: black; text-decoration: none !important;cursor:pointer !i=
mportant;" 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: inlin=
e-block; line-height: 11px; max-width: 145px; min-width: 85px; overflow: hi=
dden; max-height: 13px; word-break: break-all;"><span class=3D"link-enhancr=
-element link-enhancr-mobile-no-resize" style=3D"vertical-align:middle; fon=
t-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none=
; -ms-text-size-adjust: none; -webkit-text-size-adjust:none; text-size-adju=
st:none;">View on <span style=3D"font-weight: bold" class=3D"link-enhancr-v=
iew-on-domain">wiki.geda-project.org</span></span></span></a></div></td><td=
class=3D"link-enhancr-element" style=3D"vertical-align: middle; width: 100=
px; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><di=
v class=3D"link-enhancr-element link-enhancr-preview-wrapper" style=3D"max-=
width: 100px; min-width: 80px; overflow: hidden; text-align: right; line-he=
ight: 11px; max-height: 13px; font-size: 0pt;"><span class=3D"link-enhancr-=
element link-enhancr-preview-by link-enhancr-mobile-no-resize" style=3D"ver=
tical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz=
-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adju=
st: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; bac=
kground-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div cl=
ass=3D"link-enhancr-element" style=3D"height: 9px; background-color: #fffff=
f; 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; backgrou=
nd-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"> </div></td></tr></tbody></table></di=
v><div id=3D"yui_3_16_0_1_1419335463528_18455"><span></span></div> <div cla=
ss=3D"qtdSeparateBR"><br><br></div><div style=3D"display: block;" class=3D"=
yahoo_quoted"> <div style=3D"font-family: HelveticaNeue, Helvetica Neue, He=
lvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style=3D=
"font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grand=
e, sans-serif; font-size: 16px;"> <div dir=3D"ltr"> <font face=3D"Arial" si=
ze=3D"2"> On Tuesday, December 23, 2014 2:19 PM, Francesc Vila <francesc=
.vila AT imb-cnm DOT csic DOT es> wrote:<br> </font> </div> <br><br> <div class=3D=
"y_msg_container"><div id=3D"yiv1420367839"><div><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 fo=
r 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 att=
ribute =E2=80=9Cdevice" on the symbol. It should be SUBCKT_PMOS or SUBCKT_N=
MOS instead of PMOS_TRANSISTOR or NMOS_TRANSISTOR. Then, the spice-sdb back=
end should generate the correct device line.</div><div><br clear=3D"none"><=
/div><div>Best regards,</div><div>Francesc</div><div><blockquote type=3D"ci=
te"></blockquote></div><div class=3D"yiv1420367839yqt5950408510" id=3D"yiv1=
420367839yqt05437"><div><br clear=3D"none"><div><div>On 23 Dec 2014, at 13:=
39, Johnny Cage <<a rel=3D"nofollow" shape=3D"rect" ymailto=3D"mailto:he=
llbourne AT yahoo DOT com" target=3D"_blank" href=3D"mailto:hellbourne AT yahoo DOT com">=
hellbourne AT yahoo DOT com</a>> wrote:</div><br class=3D"yiv1420367839Apple-in=
terchange-newline" clear=3D"none"><blockquote type=3D"cite"><div style=3D"b=
ackground-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Ne=
ue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div id=
=3D"yiv1420367839yui_3_16_0_1_1419335463528_11644">Well, I changed it to th=
e following:</div><div><br clear=3D"none"></div><blockquote><blockquote><di=
v dir=3D"ltr" id=3D"yiv1420367839yui_3_16_0_1_1419335463528_11693">* gnetli=
st -g spice-sdb -o <a rel=3D"nofollow" shape=3D"rect" target=3D"_blank" hre=
f=3D"http://spice.net/">spice.net</a> TIC_based_CF739.sch<br class=3D"yiv14=
20367839" style=3D"" clear=3D"none">***************************************=
******************<br class=3D"yiv1420367839" style=3D"" clear=3D"none">* S=
pice file generated by gnetlist &n=
bsp;  =
; *<br class=3D"yiv1420367839" style=3D"" clear=3D"none">* spice-sdb =
version 4.28.2007 by SDB -- =
*<br class=3D"yiv142036783=
9" style=3D"" clear=3D"none">* provides advanced spice netlisting capabilit=
y. *<br class=3D"yiv1420367839" s=
tyle=3D"" clear=3D"none">* Documentation at <a rel=3D"nofollow" shape=3D"re=
ct" target=3D"_blank" href=3D"http://www.brorson.com/gEDA/SPICE/">http://ww=
w.brorson.com/gEDA/SPICE/</a> *<br class=3D"yiv1420367839" styl=
e=3D"" clear=3D"none">*****************************************************=
****<br class=3D"yiv1420367839" style=3D"" clear=3D"none">*vvvvvvvv I=
ncluded SPICE model from /home/af3/Dropbox/Wrachtrup/simulations/spice/NE32=
10S01.mod vvvvvvvv<br class=3D"yiv1420367839" style=3D"" clear=3D"none">.su=
bckt NE3210S01_v1 Gate Drain Source Ugw=3D160um Ngf=3D1<br class=3D"yiv1420=
367839" style=3D"" clear=3D"none">.param CGD=3D1.4e-15<br class=3D"yiv14203=
67839" style=3D"" clear=3D"none">.param CGS=3D60e-15<br class=3D"yiv1420367=
839" style=3D"" clear=3D"none">.param CSD=3D80e-15<br class=3D"yiv142036783=
9" 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" s=
tyle=3D"" clear=3D"none">.param LS=3D0.11e-9<br class=3D"yiv1420367839" sty=
le=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"n=
one">C1 Gate Drain 'CGD'<br class=3D"yiv1420367839" style=3D"" clear=3D"non=
e">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"yiv142036=
7839" style=3D"" clear=3D"none">+ VTO=3D-0.95 GAMMA=3D0.055 VGO=3D-0.323 VC=
H=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"yiv1420367=
839" 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 VTSO=
AC=3D-10 DELTGMAC=3D0.17<br class=3D"yiv1420367839" style=3D"" clear=3D"non=
e">+ IS=3D26e-12 N=3D1.5 KBK=3D0 IDSOC=3D0.1 VBR=3D15 NBR=3D2<br class=3D"y=
iv1420367839" style=3D"" clear=3D"none">+ RS=3D0.8 RG=3D2.0 RD=3D1.0 Ugw=3D=
160 Ngf=3D1<br class=3D"yiv1420367839" style=3D"" clear=3D"none">+ C11O=3D1=
88e-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=3D19=
e-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 cla=
ss=3D"yiv1420367839" style=3D"" clear=3D"none"><br class=3D"yiv1420367839" =
style=3D"" clear=3D"none"><br class=3D"yiv1420367839" style=3D"" clear=3D"n=
one"><br class=3D"yiv1420367839" style=3D"" clear=3D"none">*^^^^^^^^ =
End of included SPICE model from /home/af3/Dropbox/Wrachtrup/simulations/sp=
ice/NE3210S01.mod ^^^^^^^^<br class=3D"yiv1420367839" style=3D"" clear=3D"n=
one">*<br class=3D"yiv1420367839" style=3D"" 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 class=3D"yiv1420367839" style=3D"" cle=
ar=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 <br class=3D"yiv1420367839" style=3D"" clear=3D"none">R2 0 Vin=
10MEG <br class=3D"yiv1420367839" style=3D"" clear=3D"none">R1 0 Vou=
t 1.5K <br class=3D"yiv1420367839" style=3D"" clear=3D"none">MX1 1 Vi=
n 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 wor=
k 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"n=
one"></div><div class=3D"yiv1420367839yahoo_quoted" style=3D"display:block;=
"> <div style=3D"font-family:HelveticaNeue, Helvetica Neue, Helvetica, Aria=
l, Lucida Grande, sans-serif;font-size:16px;"> <div style=3D"font-family:He=
lveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;fo=
nt-size:16px;"> <div dir=3D"ltr"> <font face=3D"Arial" size=3D"2"> On Tuesd=
ay, December 23, 2014 1:24 PM, myken <<a rel=3D"nofollow" shape=3D"rect"=
ymailto=3D"mailto:myken AT iae DOT nl" target=3D"_blank" href=3D"mailto:myken AT iae=
.nl">myken AT iae DOT nl</a>> wrote:<br clear=3D"none"> </font> </div> <br cle=
ar=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"non=
e">
<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:Helveti=
caNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;fon=
t-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">* gnetli=
st -g
spice-sdb -o <a rel=3D"nofollow" shape=3D"rect" target=3D"_blan=
k" href=3D"http://spice.net/">spice.net</a> TIC_based_CF739.sch<br clear=3D=
"none">
*********************************************************<br cl=
ear=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.br=
orson.com/gEDA/SPICE/">http://www.brorson.com/gEDA/SPICE/</a> *<br clear=3D=
"none">
*********************************************************<br cl=
ear=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 clea=
r=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.0=
8
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 c=
lear=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"non=
e">
</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"n=
one">
<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></div></div><br><b=
r></div> </div> </div> </div> </div></body></html>
------=_Part_147764_1452256131.1419343436564--
- Raw text -