X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUEAGZnmVTAqA0L/2dsb2JhbABbgkOBFVi2e4xtb4FlhXQCgS4BAQEBAQF8hAwBAQEBAgEMcgsLDQsuRRIZiBgDCQ0IvlyQQwEBAQEdjUqCL4MWgRMFhC0GjSCDbweCe4RHFoVfAoVThBFugkMBAQE X-IPAS-Result: ArUEAGZnmVTAqA0L/2dsb2JhbABbgkOBFVi2e4xtb4FlhXQCgS4BAQEBAQF8hAwBAQEBAgEMcgsLDQsuRRIZiBgDCQ0IvlyQQwEBAQEdjUqCL4MWgRMFhC0GjSCDbweCe4RHFoVfAoVThBFugkMBAQE X-IronPort-AV: E=Sophos;i="5.07,632,1413237600"; d="scan'208,217";a="6968899" From: Francesc Vila Content-Type: multipart/alternative; boundary="Apple-Mail=_D137EB6E-2EE6-450A-A77F-27E596A57C4D" Message-Id: <7CEB5321-E3F6-45F3-B37B-A81FFD214FA6@imb-cnm.csic.es> 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 14:05:27 +0100 References: <54995EE8 DOT 8040706 AT iae DOT nl> <485484110 DOT 142693 DOT 1419338391422 DOT JavaMail DOT yahoo AT jws10720 DOT mail DOT gq1 DOT yahoo DOT com> To: geda-user AT delorie DOT com In-Reply-To: <485484110.142693.1419338391422.JavaMail.yahoo@jws10720.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 Precedence: bulk --Apple-Mail=_D137EB6E-2EE6-450A-A77F-27E596A57C4D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hello, If you look at the generated netlist, the device still starts using the = letter =91M=92 not the X. So ngspice looks for a MOS transistor instead = of the subcircuit. AFAIK, to really fix the problem you should check the value of the = attribute =93device" 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. Best regards, Francesc On 23 Dec 2014, at 13:39, Johnny Cage wrote: > 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 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 --Apple-Mail=_D137EB6E-2EE6-450A-A77F-27E596A57C4D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Hello,

If you look at the = generated netlist, the device still starts using the letter =91M=92 not = the X. So ngspice looks for a MOS transistor instead of the = subcircuit.

AFAIK, to really fix the problem you = should check the value of the attribute =93device" 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.

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           =            *
* spice-sdb version 4.28.2007 by SDB = --            =      *
* provides advanced = spice netlisting capability.        = *
* Documentation at http://www.brorson.com/gEDA/SP= ICE/   *
*********************************************************
*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
+ 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
+ C12SAT=3D19e-15 = CGDSAT=3D20e-15 RIS=3D4.8 RID=3D0.001 TAU=3D2.1e-12 CDSO=3D124e-15
.ends NE3210S01_v1



*^^^^^^^^  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 
R2 0 Vin 10MEG 
R1 = 0 Vout 1.5K 
MX1 1 Vin Vout Vout = NE3210S01
.end
Still does not work and = with the same error message. Any ideas?

=


On Tuesday, = December 23, 2014 1:24 PM, myken <myken AT iae DOT nl> wrote:
=


=
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/SP= ICE/ *
*********************************************************
*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
+ 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
+ C12SAT=3D19e-15 CGDSAT=3D20e-15 RIS=3D4.8 RID=3D0.001 = TAU=3D2.1e-12 CDSO=3D124e-15
.ENDS NE3210S01



*^^^^^^^^ 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
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



=

= --Apple-Mail=_D137EB6E-2EE6-450A-A77F-27E596A57C4D--