From: Anil K. A. <ani...@ho...> - 2005-12-02 20:41:13
|
Hai Victor, Thanks for response. sorry , i send a wrong netlist. I am trying to find the output for SR flipflop. But i am not getting any output for the circuit. I have taken this netlist from some website. Can u help me, what is the mistake in the netlist or what's the problem getting an output. Does should i give any initial conditions for it? *netlist for the circuit .control destroy all run plot vr vS+1.5 vQ+3 vq1+4.5 VQ1+4.5 ylimit 0 6 .endc .option scale=50n .tran .01n 4n vS vS 0 DC 0 pulse(0 1 1n 0 0 1n 2n) vR vR 0 DC 0 pulse(0 1 2n 0 0 2n 4n) x1 vS vQ vQ1 NAND x2 vR vQ1 vQ NAND .subckt NAND ina inb out vdd vdd 0 DC 1 M1 out ina vdd vdd PMOS L=1 W=20 M2 out inb vdd vdd PMOS L=1 W=20 M3 out ina n1 0 NMOS L=1 W=20 M4 n1 inb 0 0 NMOS L=1 W=10 .ends NAND * 50nm BSIM4 models * * Don't forget the .options scale=50nm if using an Lmin of 1 * 1<Ldrawn<200 10<Wdrawn<10000 Vdd=1V * Change to level=54 when using HSPICE .model nmos nmos level = 14 +binunit = 1 paramchk= 1 mobmod = 0 +capmod = 2 igcmod = 1 igbmod = 1 geomod = 1 +diomod = 1 rdsmod = 0 rbodymod= 1 rgatemod= 1 +permod = 1 acnqsmod= 0 trnqsmod= 0 +tnom = 27 toxe = 1.4e-009 toxp = 7e-010 toxm = 1.4e-009 +epsrox = 3.9 wint = 5e-009 lint = 1.2e-008 +ll = 0 wl = 0 lln = 1 wln = 1 +lw = 0 ww = 0 lwn = 1 wwn = 1 +lwl = 0 wwl = 0 xpart = 0 toxref = 1.4e-009 +vth0 = 0.22 k1 = 0.35 k2 = 0.05 k3 = 0 +k3b = 0 w0 = 2.5e-006 dvt0 = 2.8 dvt1 = 0.52 +dvt2 = -0.032 dvt0w = 0 dvt1w = 0 dvt2w = 0 +dsub = 2 minv = 0.05 voffl = 0 dvtp0 = 1e-007 +dvtp1 = 0.05 lpe0 = 5.75e-008 lpeb = 2.3e-010 xj = 2e-008 +ngate = 5e+020 ndep = 2.8e+018 nsd = 1e+020 phin = 0 +cdsc = 0.0002 cdscb = 0 cdscd = 0 cit = 0 +voff = -0.15 nfactor = 1.2 eta0 = 0.15 etab = 0 +vfb = -0.55 u0 = 0.032 ua = 1.6e-010 ub = 1.1e-017 +uc = -3e-011 vsat = 1.1e+005 a0 = 2 ags = 1e-020 +a1 = 0 a2 = 1 b0 = -1e-020 b1 = 0 +keta = 0.04 dwg = 0 dwb = 0 pclm = 0.18 +pdiblc1 = 0.028 pdiblc2 = 0.022 pdiblcb = -0.005 drout = 0.45 +pvag = 1e-020 delta = 0.01 pscbe1 = 8.14e+008 pscbe2 = 1e-007 +fprout = 0.2 pdits = 0.2 pditsd = 0.23 pditsl = 2.3e+006 +rsh = 3 rdsw = 150 rsw = 150 rdw = 150 +rdswmin = 0 rdwmin = 0 rswmin = 0 prwg = 0 +prwb = 6.8e-011 wr = 1 alpha0 = 0.074 alpha1 = 0.005 +beta0 = 30 agidl = 0.0002 bgidl = 2.1e+009 cgidl = 0.0002 +egidl = 0.8 +aigbacc = 0.012 bigbacc = 0.0028 cigbacc = 0.002 +nigbacc = 1 aigbinv = 0.014 bigbinv = 0.004 cigbinv = 0.004 +eigbinv = 1.1 nigbinv = 3 aigc = 0.017 bigc = 0.0028 +cigc = 0.002 aigsd = 0.017 bigsd = 0.0028 cigsd = 0.002 +nigc = 1 poxedge = 1 pigcd = 1 ntox = 1 +xrcrg1 = 12 xrcrg2 = 5 +cgso = 6.238e-010 cgdo = 6.238e-010 cgbo = 2.56e-011 cgdl = 2.495e-10 +cgsl = 2.495e-10 ckappas = 0.02 ckappad = 0.02 acde = 1 +moin = 15 noff = 0.9 voffcv = 0.02 +kt1 = -0.21 kt1l = 0.0 kt2 = -0.042 ute = -1.5 +ua1 = 1e-009 ub1 = -3.5e-019 uc1 = 0 prt = 0 +at = 53000 +fnoimod = 1 tnoimod = 0 +jss = 0.0001 jsws = 1e-011 jswgs = 1e-010 njs = 1 +ijthsfwd= 0.01 ijthsrev= 0.001 bvs = 10 xjbvs = 1 +jsd = 0.0001 jswd = 1e-011 jswgd = 1e-010 njd = 1 +ijthdfwd= 0.01 ijthdrev= 0.001 bvd = 10 xjbvd = 1 +pbs = 1 cjs = 0.0005 mjs = 0.5 pbsws = 1 +cjsws = 5e-010 mjsws = 0.33 pbswgs = 1 cjswgs = 3e-010 +mjswgs = 0.33 pbd = 1 cjd = 0.0005 mjd = 0.5 +pbswd = 1 cjswd = 5e-010 mjswd = 0.33 pbswgd = 1 +cjswgd = 5e-010 mjswgd = 0.33 tpb = 0.005 tcj = 0.001 +tpbsw = 0.005 tcjsw = 0.001 tpbswg = 0.005 tcjswg = 0.001 +xtis = 3 xtid = 3 +dmcg = 0e-006 dmci = 0e-006 dmdg = 0e-006 dmcgt = 0e-007 +dwj = 0.0e-008 xgw = 0e-007 xgl = 0e-008 +rshg = 0.4 gbmin = 1e-010 rbpb = 5 rbpd = 15 +rbps = 15 rbdb = 15 rbsb = 15 ngcon = 1 .model pmos pmos level = 14 +binunit = 1 paramchk= 1 mobmod = 0 +capmod = 2 igcmod = 1 igbmod = 1 geomod = 1 +diomod = 1 rdsmod = 0 rbodymod= 1 rgatemod= 1 +permod = 1 acnqsmod= 0 trnqsmod= 0 +tnom = 27 toxe = 1.4e-009 toxp = 7e-010 toxm = 1.4e-009 +epsrox = 3.9 wint = 5e-009 lint = 1.2e-008 +ll = 0 wl = 0 lln = 1 wln = 1 +lw = 0 ww = 0 lwn = 1 wwn = 1 +lwl = 0 wwl = 0 xpart = 0 toxref = 1.4e-009 +vth0 = -0.22 k1 = 0.39 k2 = 0.05 k3 = 0 +k3b = 0 w0 = 2.5e-006 dvt0 = 3.9 dvt1 = 0.635 +dvt2 = -0.032 dvt0w = 0 dvt1w = 0 dvt2w = 0 +dsub = 0.7 minv = 0.05 voffl = 0 dvtp0 = 0.5e-008 +dvtp1 = 0.05 lpe0 = 5.75e-008 lpeb = 2.3e-010 xj = 2e-008 +ngate = 5e+020 ndep = 2.8e+018 nsd = 1e+020 phin = 0 +cdsc = 0.000258 cdscb = 0 cdscd = 6.1e-008 cit = 0 +voff = -0.15 nfactor = 2 eta0 = 0.15 etab = 0 +vfb = 0.55 u0 = 0.0095 ua = 1.6e-009 ub = 8e-018 +uc = 4.6e-013 vsat = 90000 a0 = 1.2 ags = 1e-020 +a1 = 0 a2 = 1 b0 = -1e-020 b1 = 0 +keta = -0.047 dwg = 0 dwb = 0 pclm = 0.55 +pdiblc1 = 0.03 pdiblc2 = 0.0055 pdiblcb = 3.4e-008 drout = 0.56 +pvag = 1e-020 delta = 0.014 pscbe1 = 8.14e+008 pscbe2 = 9.58e-007 +fprout = 0.2 pdits = 0.2 pditsd = 0.23 pditsl = 2.3e+006 +rsh = 3 rdsw = 250 rsw = 160 rdw = 160 +rdswmin = 0 rdwmin = 0 rswmin = 0 prwg = 3.22e-008 +prwb = 6.8e-011 wr = 1 alpha0 = 0.074 alpha1 = 0.005 +beta0 = 30 agidl = 0.0002 bgidl = 2.1e+009 cgidl = 0.0002 +egidl = 0.8 +aigbacc = 0.012 bigbacc = 0.0028 cigbacc = 0.002 +nigbacc = 1 aigbinv = 0.014 bigbinv = 0.004 cigbinv = 0.004 +eigbinv = 1.1 nigbinv = 3 aigc = 0.69 bigc = 0.0012 +cigc = 0.0008 aigsd = 0.0087 bigsd = 0.0012 cigsd = 0.0008 +nigc = 1 poxedge = 1 pigcd = 1 ntox = 1 +xrcrg1 = 12 xrcrg2 = 5 +cgso = 7.43e-010 cgdo = 7.43e-010 cgbo = 2.56e-011 cgdl = 1e-014 +cgsl = 1e-014 ckappas = 0.5 ckappad = 0.5 acde = 1 +moin = 15 noff = 0.9 voffcv = 0.02 +kt1 = -0.19 kt1l = 0 kt2 = -0.052 ute = -1.5 +ua1 = -1e-009 ub1 = 2e-018 uc1 = 0 prt = 0 +at = 33000 +fnoimod = 1 tnoimod = 0 +jss = 0.0001 jsws = 1e-011 jswgs = 1e-010 njs = 1 +ijthsfwd= 0.01 ijthsrev= 0.001 bvs = 10 xjbvs = 1 +jsd = 0.0001 jswd = 1e-011 jswgd = 1e-010 njd = 1 +ijthdfwd= 0.01 ijthdrev= 0.001 bvd = 10 xjbvd = 1 +pbs = 1 cjs = 0.0005 mjs = 0.5 pbsws = 1 +cjsws = 5e-010 mjsws = 0.33 pbswgs = 1 cjswgs = 3e-010 +mjswgs = 0.33 pbd = 1 cjd = 0.0005 mjd = 0.5 +pbswd = 1 cjswd = 5e-010 mjswd = 0.33 pbswgd = 1 +cjswgd = 5e-010 mjswgd = 0.33 tpb = 0.005 tcj = 0.001 +tpbsw = 0.005 tcjsw = 0.001 tpbswg = 0.005 tcjswg = 0.001 +xtis = 3 xtid = 3 +dmcg = 5e-006 dmci = 5e-006 dmdg = 5e-006 dmcgt = 6e-007 +dwj = 4.5e-008 xgw = 3e-007 xgl = 4e-008 +rshg = 0.4 gbmin = 1e-010 rbpb = 5 rbpd = 15 +rbps = 15 rbdb = 15 rbsb = 15 ngcon = 1 .end I hope you help me Thank you Regards, anil >From: Victor Bourenkov <vi...@ty...> >Reply-To: ngs...@li... >To: ngs...@li... >Subject: Re: [Ngspice-users] I have problem simulating JK flip-flop >Date: Fri, 2 Dec 2005 10:33:58 +0000 (GMT) > >Hi Anil, > >am I missing something or your circuit consists only of voltage sources? > >Regards, >Victor > > > > > > > hai everybody, > > > > > > i tried to simulate the jk flip flop netlist. but > > ngspice is able to plot the input values. It is unable to plot or print >the > > output. The netlist which iam running in the ngspice is below. Plz look >at > > once and tell wats the problem. > > > > * File name: JKTest.cir* > > * Voltage and current sources > > * > > VBTN1 4 0 DC 0 PULSE(0 1.2 1.00N 0.1N 0.1N 1.00N 3.00N ) > > VBTN2 3 0 DC 0 PULSE(0 1.2 2.00N 0.1N 0.1N 2.00N 5.00N ) > > VBTN3 2 0 DC 0 PULSE(0 1.2 3.00N 0.1N 0.1N 3.00N 7.00N ) > > VBTN4 5 0 DC 0 PULSE(0 1.2 4.00N 0.1N 0.1N 4.00N 9.00N ) > > VBTN5 6 0 DC 0 PULSE(0 1.2 5.00N 0.1N 0.1N 5.00N 11.00N ) > > * > > * Passive devices > > * > > * > > * Active devices > > * > > * > > * > > * Mos models in 0.12µm > > * Model 3 n-channel MOS > > .MODEL TN NMOS > > + LEVEL=3 TPG=+1 > > + GAMMA=0.2 THETA=0.5 KAPPA=0.1 ETA=0.002 > > + DELTA=0.0 UO=620 VMAX=100E3 VTO=0.35 > > + TOX=3e-9 XJ=0.1U LD=0.00U NSUB=1E+18 > > + NSS=0.2 NFS=7E11 > > + CJ=4.091E-4 MJ=0.307 PB=1.0 > > + CJSW=3.078E-10 MJSW=1.0E-2 > > + CGSO=3.93E-10 CGDO=3.93E-10 > > * Model 3 p-channel MOS > > .MODEL TP PMOS > > + LEVEL=3 TPG=-1 > > + GAMMA=0.2 THETA=0.5 KAPPA=0.01 ETA=0.001 > > + DELTA=0.0 UO=250 VMAX=500E3 VTO=-0.35 > > + TOX=3E-9 XJ=0.1U LD=0.0U NSUB=1E+18 > > + NSS=0.0 NFS=7E11 > > + CJ=6.852E-4 MJ=0.429 PB=1.0 > > + CJSW=5.217E-10 MJSW=0.351 > > + CGSO=7.29E-10 CGDO=7.29E-10 > > .TRAN 0.1ns 250ns > > * Run simulation > > *#run > > * > > * Dump time and volts in "JKTest.out" > > *#set nobreak > > .print V(4) V(3) V(2) V(5) V(6) V(8) V(7) > JKTest.out > > .plot V(4) V(3) V(2) V(5) V(6) V(8) V(7) > > .OPTIONS DELMIN=0 RELTOL=1E-6 > > .END > > > > I hope some one can help me > > > > Thank you, > > > > > > Regards > > anil > > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log >files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_idv37&alloc_id865&op=click >_______________________________________________ >Ngspice-users mailing list >Ngs...@li... >https://lists.sourceforge.net/lists/listinfo/ngspice-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |