X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-SourceIP: 95.97.163.245 X-Authenticated-Sender: b DOT mykendevelopment AT upcmail DOT nl Message-ID: <54995EE8.8040706@iae.nl> Date: Tue, 23 Dec 2014 13:24:08 +0100 From: myken User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: geda-user AT delorie DOT com Subject: Re: [geda-user] Unable to find definition of model... References: <1739382120 DOT 137834 DOT 1419335808926 DOT JavaMail DOT yahoo AT jws10752 DOT mail DOT gq1 DOT yahoo DOT com> In-Reply-To: <1739382120.137834.1419335808926.JavaMail.yahoo@jws10752.mail.gq1.yahoo.com> Content-Type: multipart/alternative; boundary="------------050902040600010701030509" Reply-To: geda-user AT delorie DOT com This is a multi-part message in MIME format. --------------050902040600010701030509 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello John, To my knowledge, if you use a SUBCKT the component in question should have a X? as a refdes. 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. Merry Christmas, Robert Zeegers. On 23/12/14 12:56, Johnny Cage wrote: > I am trying to ngspice the following code: > > * 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=160um Ngf=1 > .param CGD=1.4e-15 > .param CGS=60e-15 > .param CSD=80e-15 > .param LG=0.82e-9 > .param LD=0.74e-9 > .param LS=0.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=160 N=1 M=1 > .MODEL NE3210S01 njf level=15 > + VTO=-0.95 GAMMA=0.055 VGO=-0.323 VCH=1.03 GMMAX=0.08 VDSO=2 > VSAT=0.44 KAPA=0.009 PEFF=101 > + VTSO=-10 VCO=-0.245 MU=0.001 VBA=1 VBC=0.5 DELTGM=0.17 ALPHA=0.1 > + RDB=1.0e9 CBS=160e-15 GDBM=60e-6 KDB=100 VDSM=100 GMMAXAC=0.082 > VTOAC=-0.92 > + GAMMAAC=0.06 KAPAAC=0.002 PEFFAC=294 VTSOAC=-10 DELTGMAC=0.17 > + IS=26e-12 N=1.5 KBK=0 IDSOC=0.1 VBR=15 NBR=2 > + RS=0.8 RG=2.0 RD=1.0 Ugw=160 Ngf=1 > + C11O=188e-15 C11TH=129e-15 VINFL=-0.706 DELTGS=0.527 > DELTDS=0.287 LAMBDA=0.03 > + C12SAT=19e-15 CGDSAT=20e-15 RIS=4.8 RID=0.001 TAU=2.1e-12 > CDSO=124e-15 > .ENDS NE3210S01 > > > > *^^^^^^^^ End of included SPICE model from > /home/af3/Dropbox/Wrachtrup/simulations/spice/NE3210S01.mod ^^^^^^^^ > * > *============== Begin SPICE netlist of main design ============ > .options TEMP=25 > .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 > R2 0 Vin 10MEG > R1 0 Vout 1.5K > MQ1 1 Vin Vout Vout NE3210S01 > .end > > However, on the results.txt file I get the following message: > > Circuit: * gnetlist -g spice-sdb -o spice.net tic_based_cf739.sch > > Error on line 46 : mq1 1 vin vout vout ne3210s01 > Unable to find definition of model ne3210s01 - default assumed > > Does anyone know what the problem is? > > Merry Christmas, > John Hellbourne --------------050902040600010701030509 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
Hello John,

To my knowledge, if you use a SUBCKT the component in question should have a X? as a refdes.

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.

Merry Christmas,
Robert Zeegers.


On 23/12/14 12:56, Johnny Cage wrote:
I am trying to ngspice the following code:

* 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=160um Ngf=1
.param CGD=1.4e-15
.param CGS=60e-15
.param CSD=80e-15
.param LG=0.82e-9
.param LD=0.74e-9
.param LS=0.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=160 N=1 M=1
.MODEL NE3210S01 njf level=15
+ VTO=-0.95 GAMMA=0.055 VGO=-0.323 VCH=1.03 GMMAX=0.08 VDSO=2 VSAT=0.44 KAPA=0.009 PEFF=101
+ VTSO=-10 VCO=-0.245 MU=0.001 VBA=1 VBC=0.5 DELTGM=0.17 ALPHA=0.1
+ RDB=1.0e9 CBS=160e-15 GDBM=60e-6 KDB=100 VDSM=100 GMMAXAC=0.082 VTOAC=-0.92
+ GAMMAAC=0.06 KAPAAC=0.002 PEFFAC=294 VTSOAC=-10 DELTGMAC=0.17
+ IS=26e-12 N=1.5 KBK=0 IDSOC=0.1 VBR=15 NBR=2
+ RS=0.8 RG=2.0 RD=1.0 Ugw=160 Ngf=1
+ C11O=188e-15 C11TH=129e-15 VINFL=-0.706 DELTGS=0.527 DELTDS=0.287 LAMBDA=0.03
+ C12SAT=19e-15 CGDSAT=20e-15 RIS=4.8 RID=0.001 TAU=2.1e-12 CDSO=124e-15
.ENDS NE3210S01



*^^^^^^^^ End of included SPICE model from /home/af3/Dropbox/Wrachtrup/simulations/spice/NE3210S01.mod ^^^^^^^^
*
*============== Begin SPICE netlist of main design ============
.options TEMP=25
.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
R2 0 Vin 10MEG
R1 0 Vout 1.5K
MQ1 1 Vin Vout Vout NE3210S01
.end
However, on the results.txt file I get the following message:

Circuit: * gnetlist -g spice-sdb -o spice.net tic_based_cf739.sch

Error on line 46 : mq1 1 vin vout vout ne3210s01
Unable to find definition of model ne3210s01 - default assumed

Does anyone know what the problem is?

Merry Christmas,
John Hellbourne

--------------050902040600010701030509--