From 3445bbfb15e8558137fb342b394b11473502804d Mon Sep 17 00:00:00 2001 From: dwarning Date: Mon, 23 Feb 2009 21:49:01 +0000 Subject: [PATCH] add level parameter --- examples/TransImpedanceAmp/output.net | 764 +++++++++++++------------- tests/general/diffpair.cir | 4 +- tests/general/fourbitadder.cir | 2 +- tests/general/rca3040.cir | 4 +- tests/general/rtlinv.cir | 4 +- tests/general/schmitt.cir | 5 +- tests/sensitivity/diffpair.cir | 4 +- tests/transient/fourbitadder.cir | 2 +- tests/transmission/ibm1.cir | 2 +- tests/transmission/ltra_1.cir | 6 +- tests/transmission/ltra_2.cir | 6 +- tests/transmission/ltra_3.cir | 8 +- tests/transmission/txl4_ksp.cir | 6 +- tests/transmission/txl4_sp.cir | 6 +- tests/transmission/txl5_ksp.cir | 6 +- tests/transmission/txl5_sp.cir | 6 +- tests/transmission/txl6_ksp.cir | 8 +- tests/transmission/txl6_sp.cir | 8 +- 18 files changed, 425 insertions(+), 426 deletions(-) diff --git a/examples/TransImpedanceAmp/output.net b/examples/TransImpedanceAmp/output.net index 1f78eb8d1..b67071194 100644 --- a/examples/TransImpedanceAmp/output.net +++ b/examples/TransImpedanceAmp/output.net @@ -22,248 +22,248 @@ R201 -5V 9 22 Rref1in VU100in- VU780out 9130 Rref1fb VU1bias+ VU100in- 33 XU101 +5V 7 0 6 VU780out 8 AD780A -* AD780A SPICE Macromodel 5/93, Rev. A -* AAG / PMI -* -* This version of the AD780 voltage reference model simulates the worst case -* parameters of the 'A' grade. The worst case parameters used -* correspond to those in the data sheet. -* -* Copyright 1993 by Analog Devices, Inc. -* -* Refer to "README.DOC" file for License Statement. Use of this model -* indicates your acceptance with the terms and provisions in the License Statement. -* -* NODE NUMBERS -* VIN -* | TEMP -* | | GND -* | | | TRIM -* | | | | VOUT -* | | | | | RANGE -* | | | | | | -.SUBCKT AD780A 2 3 4 5 6 8 -* -* BANDGAP REFERENCE -* -I1 4 40 DC 1.21174E-3 -R1 40 4 1E3 TC=7E-6 -EN 10 40 42 0 1 -G1 4 10 2 4 4.85668E-9 -F1 4 10 POLY(2) VS1 VS2 (0,2.42834E-5,3.8E-5) -Q1 2 10 11 QT -I2 11 4 DC 12.84E-6 -R2 11 3 1E3 -I3 3 4 DC 0 -* -* NOISE VOLTAGE GENERATOR -* -VN1 41 0 DC 2 -DN1 41 42 DEN -DN2 42 43 DEN -VN2 0 43 DC 2 -* -* INTERNAL OP AMP -* -G2 4 12 10 20 1.93522E-4 -R3 12 4 2.5837E9 -C1 12 4 6.8444E-11 -D1 12 13 DX -V1 2 13 DC 1.2 -* -* SECONDARY POLE @ 508 kHz -* -G3 4 14 12 4 1E-6 -R4 14 4 1E6 -C2 14 4 3.1831E-13 -* -* OUTPUT STAGE -* -ISY 2 4 6.8282E-4 -FSY 2 4 V1 -1 -RSY 2 4 500E3 -* -G4 4 15 14 4 25E-6 -R5 15 4 40E3 -Q2 4 15 16 QP -I4 2 16 DC 100E-6 -Q3 4 16 18 QP -R6 18 23 15 -R7 16 21 150E3 -R8 2 17 34.6 -Q4 17 16 19 QN -R9 21 20 6.46E3 -R10 20 4 6.1E3 -R11 20 5 53E3 -R12 20 8 15.6E3 -I5 5 4 DC 0 -I6 8 4 DC 0 -VS1 21 19 DC 0 -VS2 23 21 DC 0 -L1 21 6 1E-7 -* -* OUTPUT CURRENT LIMIT -* -FSC 15 4 VSC 1 -VSC 2 22 DC 0 -QSC 22 2 17 QN -* -.MODEL QT NPN(IS=1.68E-16 BF=1E4) -.MODEL QN NPN(IS=1E-15 BF=1E3) -.MODEL QP PNP(IS=1E-15 BF=1E3) -.MODEL DX D(IS=1E-15) -.MODEL DEN D(IS=1E-12 RS=2.425E+05 AF=1 KF=6.969E-16) -.ENDS AD780A +* AD780A SPICE Macromodel 5/93, Rev. A +* AAG / PMI +* +* This version of the AD780 voltage reference model simulates the worst case +* parameters of the 'A' grade. The worst case parameters used +* correspond to those in the data sheet. +* +* Copyright 1993 by Analog Devices, Inc. +* +* Refer to "README.DOC" file for License Statement. Use of this model +* indicates your acceptance with the terms and provisions in the License Statement. +* +* NODE NUMBERS +* VIN +* | TEMP +* | | GND +* | | | TRIM +* | | | | VOUT +* | | | | | RANGE +* | | | | | | +.SUBCKT AD780A 2 3 4 5 6 8 +* +* BANDGAP REFERENCE +* +I1 4 40 DC 1.21174E-3 +R1 40 4 1E3 TC=7E-6 +EN 10 40 42 0 1 +G1 4 10 2 4 4.85668E-9 +F1 4 10 POLY(2) VS1 VS2 (0,2.42834E-5,3.8E-5) +Q1 2 10 11 QT +I2 11 4 DC 12.84E-6 +R2 11 3 1E3 +I3 3 4 DC 0 +* +* NOISE VOLTAGE GENERATOR +* +VN1 41 0 DC 2 +DN1 41 42 DEN +DN2 42 43 DEN +VN2 0 43 DC 2 +* +* INTERNAL OP AMP +* +G2 4 12 10 20 1.93522E-4 +R3 12 4 2.5837E9 +C1 12 4 6.8444E-11 +D1 12 13 DX +V1 2 13 DC 1.2 +* +* SECONDARY POLE @ 508 kHz +* +G3 4 14 12 4 1E-6 +R4 14 4 1E6 +C2 14 4 3.1831E-13 +* +* OUTPUT STAGE +* +ISY 2 4 6.8282E-4 +FSY 2 4 V1 -1 +RSY 2 4 500E3 +* +G4 4 15 14 4 25E-6 +R5 15 4 40E3 +Q2 4 15 16 QP +I4 2 16 DC 100E-6 +Q3 4 16 18 QP +R6 18 23 15 +R7 16 21 150E3 +R8 2 17 34.6 +Q4 17 16 19 QN +R9 21 20 6.46E3 +R10 20 4 6.1E3 +R11 20 5 53E3 +R12 20 8 15.6E3 +I5 5 4 DC 0 +I6 8 4 DC 0 +VS1 21 19 DC 0 +VS2 23 21 DC 0 +L1 21 6 1E-7 +* +* OUTPUT CURRENT LIMIT +* +FSC 15 4 VSC 1 +VSC 2 22 DC 0 +QSC 22 2 17 QN +* +.MODEL QT NPN(level=1 IS=1.68E-16 BF=1E4) +.MODEL QN NPN(level=1 IS=1E-15 BF=1E3) +.MODEL QP PNP(level=1 IS=1E-15 BF=1E3) +.MODEL DX D(IS=1E-15) +.MODEL DEN D(IS=1E-12 RS=2.425E+05 AF=1 KF=6.969E-16) +.ENDS AD780A C101 0 U100V- 1uF C102 U100V+ 0 1uF XU100 0 VU100in- U100V+ U100V- VU1bias+ OP177A -* OP177A SPICE Macro-model 12/90, Rev. B -* JCB / PMI -* -* Revision History: -* REV. B -* Re-ordered subcircuit call out nodes to put the -* output node last. -* Changed Ios from 1E-9 to 0.5E-9 -* Added F1 and F2 to fix short circuit current limit. -* -* -* This version of the OP-177 model simulates the worst case -* parameters of the 'A' grade. The worst case parameters -* used correspond to those in the data book. -* -* -* Copyright 1990 by Analog Devices, Inc. -* -* Refer to "README.DOC" file for License Statement. Use of this model -* indicates your acceptance with the terms and provisions in the License Statement. -* -* Node assignments -* non-inverting input -* | inverting input -* | | positive supply -* | | | negative supply -* | | | | output -* | | | | | -.SUBCKT OP177A 1 2 99 50 39 -* -* INPUT STAGE & POLE AT 6 MHZ -* -R1 2 3 5E11 -R2 1 3 5E11 -R3 5 97 0.0606 -R4 6 97 0.0606 -CIN 1 2 4E-12 -C2 5 6 218.9E-9 -I1 4 51 1 -IOS 1 2 0.5E-9 -EOS 9 10 POLY(1) 30 33 10E-6 1 -Q1 5 2 7 QX -Q2 6 9 8 QX -R5 7 4 0.009 -R6 8 4 0.009 -D1 2 1 DX -D2 1 2 DX -EN 10 1 12 0 1 -GN1 0 2 15 0 1 -GN2 0 1 18 0 1 -* -EREF 98 0 33 0 1 -EPLUS 97 0 99 0 1 -ENEG 51 0 50 0 1 -* -* VOLTAGE NOISE SOURCE WITH FLICKER NOISE -* -DN1 11 12 DEN -DN2 12 13 DEN -VN1 11 0 DC 2 -VN2 0 13 DC 2 -* -* CURRENT NOISE SOURCE WITH FLICKER NOISE -* -DN3 14 15 DIN -DN4 15 16 DIN -VN3 14 0 DC 2 -VN4 0 16 DC 2 -* -* SECOND CURRENT NOISE SOURCE -* -DN5 17 18 DIN -DN6 18 19 DIN -VN5 17 0 DC 2 -VN6 0 19 DC 2 -* -* FIRST GAIN STAGE -* -R7 20 98 1 -G1 98 20 5 6 119.8 -D3 20 21 DX -D4 22 20 DX -E1 97 21 POLY(1) 97 33 -2.4 1 -E2 22 51 POLY(1) 33 51 -2.4 1 -* -* GAIN STAGE & DOMINANT POLE AT 0.127 HZ -* -R8 23 98 1.253E9 -C3 23 98 1E-9 -G2 98 23 20 33 33.3E-6 -V1 97 24 1.8 -V2 25 51 1.8 -D5 23 24 DX -D6 25 23 DX -* -* NEGATIVE ZERO AT -4MHZ -* -R9 26 27 1 -C4 26 27 -39.75E-9 -R10 27 98 1E-6 -E3 26 98 23 33 1E6 -* -* COMMON-MODE GAIN NETWORK WITH ZERO AT 63 HZ -* -R13 30 31 1 -L2 31 98 2.52E-3 -G4 98 30 3 33 0.316E-6 -D7 30 97 DX -D8 51 30 DX -* -* POLE AT 2 MHZ -* -R14 32 98 1 -C5 32 98 79.5E-9 -G5 98 32 27 33 1 -* -* OUTPUT STAGE -* -R15 33 97 1 -R16 33 51 1 -GSY 99 50 POLY(1) 99 50 0.725E-3 0.0425E-3 -F1 34 0 V3 1 -F2 0 34 V4 1 -R17 34 99 400 -R18 34 50 400 -L3 34 39 2E-7 -G6 37 50 32 34 2.5E-3 -G7 38 50 34 32 2.5E-3 -G8 34 99 99 32 2.5E-3 -G9 50 34 32 50 2.5E-3 -V3 35 34 6.8 -V4 34 36 4.4 -D9 32 35 DX -D10 36 32 DX -D11 99 37 DX -D12 99 38 DX -D13 50 37 DY -D14 50 38 DY -* -* MODELS USED -* -.MODEL QX NPN(BF=333.3E6) -.MODEL DX D(IS=1E-15) -.MODEL DY D(IS=1E-15 BV=50) -.MODEL DEN D(IS=1E-12, RS=14.61K, KF=2E-17, AF=1) -.MODEL DIN D(IS=1E-12, RS=7.55E-6, KF=3E-15, AF=1) -.ENDS +* OP177A SPICE Macro-model 12/90, Rev. B +* JCB / PMI +* +* Revision History: +* REV. B +* Re-ordered subcircuit call out nodes to put the +* output node last. +* Changed Ios from 1E-9 to 0.5E-9 +* Added F1 and F2 to fix short circuit current limit. +* +* +* This version of the OP-177 model simulates the worst case +* parameters of the 'A' grade. The worst case parameters +* used correspond to those in the data book. +* +* +* Copyright 1990 by Analog Devices, Inc. +* +* Refer to "README.DOC" file for License Statement. Use of this model +* indicates your acceptance with the terms and provisions in the License Statement. +* +* Node assignments +* non-inverting input +* | inverting input +* | | positive supply +* | | | negative supply +* | | | | output +* | | | | | +.SUBCKT OP177A 1 2 99 50 39 +* +* INPUT STAGE & POLE AT 6 MHZ +* +R1 2 3 5E11 +R2 1 3 5E11 +R3 5 97 0.0606 +R4 6 97 0.0606 +CIN 1 2 4E-12 +C2 5 6 218.9E-9 +I1 4 51 1 +IOS 1 2 0.5E-9 +EOS 9 10 POLY(1) 30 33 10E-6 1 +Q1 5 2 7 QX +Q2 6 9 8 QX +R5 7 4 0.009 +R6 8 4 0.009 +D1 2 1 DX +D2 1 2 DX +EN 10 1 12 0 1 +GN1 0 2 15 0 1 +GN2 0 1 18 0 1 +* +EREF 98 0 33 0 1 +EPLUS 97 0 99 0 1 +ENEG 51 0 50 0 1 +* +* VOLTAGE NOISE SOURCE WITH FLICKER NOISE +* +DN1 11 12 DEN +DN2 12 13 DEN +VN1 11 0 DC 2 +VN2 0 13 DC 2 +* +* CURRENT NOISE SOURCE WITH FLICKER NOISE +* +DN3 14 15 DIN +DN4 15 16 DIN +VN3 14 0 DC 2 +VN4 0 16 DC 2 +* +* SECOND CURRENT NOISE SOURCE +* +DN5 17 18 DIN +DN6 18 19 DIN +VN5 17 0 DC 2 +VN6 0 19 DC 2 +* +* FIRST GAIN STAGE +* +R7 20 98 1 +G1 98 20 5 6 119.8 +D3 20 21 DX +D4 22 20 DX +E1 97 21 POLY(1) 97 33 -2.4 1 +E2 22 51 POLY(1) 33 51 -2.4 1 +* +* GAIN STAGE & DOMINANT POLE AT 0.127 HZ +* +R8 23 98 1.253E9 +C3 23 98 1E-9 +G2 98 23 20 33 33.3E-6 +V1 97 24 1.8 +V2 25 51 1.8 +D5 23 24 DX +D6 25 23 DX +* +* NEGATIVE ZERO AT -4MHZ +* +R9 26 27 1 +C4 26 27 -39.75E-9 +R10 27 98 1E-6 +E3 26 98 23 33 1E6 +* +* COMMON-MODE GAIN NETWORK WITH ZERO AT 63 HZ +* +R13 30 31 1 +L2 31 98 2.52E-3 +G4 98 30 3 33 0.316E-6 +D7 30 97 DX +D8 51 30 DX +* +* POLE AT 2 MHZ +* +R14 32 98 1 +C5 32 98 79.5E-9 +G5 98 32 27 33 1 +* +* OUTPUT STAGE +* +R15 33 97 1 +R16 33 51 1 +GSY 99 50 POLY(1) 99 50 0.725E-3 0.0425E-3 +F1 34 0 V3 1 +F2 0 34 V4 1 +R17 34 99 400 +R18 34 50 400 +L3 34 39 2E-7 +G6 37 50 32 34 2.5E-3 +G7 38 50 34 32 2.5E-3 +G8 34 99 99 32 2.5E-3 +G9 50 34 32 50 2.5E-3 +V3 35 34 6.8 +V4 34 36 4.4 +D9 32 35 DX +D10 36 32 DX +D11 99 37 DX +D12 99 38 DX +D13 50 37 DY +D14 50 38 DY +* +* MODELS USED +* +.MODEL QX NPN(level=1 BF=333.3E6) +.MODEL DX D(IS=1E-15) +.MODEL DY D(IS=1E-15 BV=50) +.MODEL DEN D(IS=1E-12, RS=14.61K, KF=2E-17, AF=1) +.MODEL DIN D(IS=1E-12, RS=7.55E-6, KF=3E-15, AF=1) +.ENDS R102 U100V+ +5V 22 R101 -5V U100V- 22 R98 0 VU2bias+ 1K @@ -290,149 +290,149 @@ R26 2 VU2in- 150 R11 Vout2 VU2in- 180 XU2 VU2bias+ VU2in- V2+ V2- Vout2 AD8009an XU1 VU1bias+ VU1in- V1+ V1- Vout1 AD8009an -***** AD8009 SPICE model Rev B SMR/ADI 8-21-97 - -* Copyright 1997 by Analog Devices, Inc. - -* Refer to "README.DOC" file for License Statement. Use of this model -* indicates your acceptance with the terms and provisions in the License Statement. - -* rev B of this model corrects a problem in the output stage that would not -* correctly reflect the output current to the voltage supplies - -* This model will give typical performance characteristics -* for the following parameters; - -* closed loop gain and phase vs bandwidth -* output current and voltage limiting -* offset voltage (is static, will not vary with vcm) -* ibias (again, is static, will not vary with vcm) -* slew rate and step response performance -* (slew rate is based on 10-90% of step response) -* current on output will be reflected to the supplies -* vnoise, referred to the input -* inoise, referred to the input - -* distortion is not characterized - -* Node assignments -* non-inverting input -* | inverting input -* | | positive supply -* | | | negative supply -* | | | | output -* | | | | | -.SUBCKT AD8009an 1 2 99 50 28 - -* input stage * - -q1 50 3 5 qp1 -q2 99 5 4 qn1 -q3 99 3 6 qn2 -q4 50 6 4 qp2 -i1 99 5 1.625e-3 -i2 6 50 1.625e-3 -cin1 1 98 2.6e-12 -cin2 2 98 1e-12 -v1 4 2 0 - -* input error sources * - -eos 3 1 poly(1) 20 98 2e-3 1 -fbn 2 98 poly(1) vnoise3 50e-6 1e-3 -fbp 1 98 poly(1) vnoise3 50e-6 1e-3 - -* slew limiting stage * - -fsl 98 16 v1 1 -dsl1 98 16 d1 -dsl2 16 98 d1 -dsl3 16 17 d1 -dsl4 17 16 d1 -rsl 17 18 0.22 -vsl 18 98 0 - -* gain stage * - -f1 98 7 vsl 2 -rgain 7 98 2.5e5 -cgain 7 98 1.25e-12 -dcl1 7 8 d1 -dcl2 9 7 d1 -vcl1 99 8 1.83 -vcl2 9 50 1.83 - -gcm 98 7 poly(2) 98 0 30 0 0 1e-5 1e-5 - -* second pole * - -epole 14 98 7 98 1 -rpole 14 15 1 -cpole 15 98 2e-10 - -* reference stage * - -eref 98 0 poly(2) 99 0 50 0 0 0.5 0.5 - -ecmref 30 0 poly(2) 1 0 2 0 0 0.5 0.5 - -* vnoise stage * - -rnoise1 19 98 4.6e-3 -vnoise1 19 98 0 -vnoise2 21 98 0.53 -dnoise1 21 19 dn - -fnoise1 20 98 vnoise1 1 -rnoise2 20 98 1 - -* inoise stage * - -rnoise3 22 98 8.18e-6 -vnoise3 22 98 0 -vnoise4 24 98 0.575 -dnoise2 24 22 dn - -fnoise2 23 98 vnoise3 1 -rnoise4 23 98 1 - -* buffer stage * - -gbuf 98 13 15 98 1e-2 -rbuf 98 13 1e2 - -* output current reflected to supplies * - -fcurr 98 40 voc 1 -vcur1 26 98 0 -vcur2 98 27 0 -dcur1 40 26 d1 -dcur2 27 40 d1 - -* output stage * - -vo1 99 90 0 -vo2 91 50 0 -fout1 0 99 poly(2) vo1 vcur1 -9.27e-3 1 -1 -fout2 50 0 poly(2) vo2 vcur2 -9.27e-3 1 -1 -gout1 90 10 13 99 0.5 -gout2 91 10 13 50 0.5 -rout1 10 90 2 -rout2 10 91 2 -voc 10 28 0 -rout3 28 98 1e6 -dcl3 13 11 d1 -dcl4 12 13 d1 -vcl3 11 10 -0.445 -vcl4 10 12 -0.445 - -.model qp1 pnp() -.model qp2 pnp() -.model qn1 npn() -.model qn2 npn() -.model d1 d() -.model dn d(af=1 kf=1e-8) -.ends +***** AD8009 SPICE model Rev B SMR/ADI 8-21-97 + +* Copyright 1997 by Analog Devices, Inc. + +* Refer to "README.DOC" file for License Statement. Use of this model +* indicates your acceptance with the terms and provisions in the License Statement. + +* rev B of this model corrects a problem in the output stage that would not +* correctly reflect the output current to the voltage supplies + +* This model will give typical performance characteristics +* for the following parameters; + +* closed loop gain and phase vs bandwidth +* output current and voltage limiting +* offset voltage (is static, will not vary with vcm) +* ibias (again, is static, will not vary with vcm) +* slew rate and step response performance +* (slew rate is based on 10-90% of step response) +* current on output will be reflected to the supplies +* vnoise, referred to the input +* inoise, referred to the input + +* distortion is not characterized + +* Node assignments +* non-inverting input +* | inverting input +* | | positive supply +* | | | negative supply +* | | | | output +* | | | | | +.SUBCKT AD8009an 1 2 99 50 28 + +* input stage * + +q1 50 3 5 qp1 +q2 99 5 4 qn1 +q3 99 3 6 qn2 +q4 50 6 4 qp2 +i1 99 5 1.625e-3 +i2 6 50 1.625e-3 +cin1 1 98 2.6e-12 +cin2 2 98 1e-12 +v1 4 2 0 + +* input error sources * + +eos 3 1 poly(1) 20 98 2e-3 1 +fbn 2 98 poly(1) vnoise3 50e-6 1e-3 +fbp 1 98 poly(1) vnoise3 50e-6 1e-3 + +* slew limiting stage * + +fsl 98 16 v1 1 +dsl1 98 16 d1 +dsl2 16 98 d1 +dsl3 16 17 d1 +dsl4 17 16 d1 +rsl 17 18 0.22 +vsl 18 98 0 + +* gain stage * + +f1 98 7 vsl 2 +rgain 7 98 2.5e5 +cgain 7 98 1.25e-12 +dcl1 7 8 d1 +dcl2 9 7 d1 +vcl1 99 8 1.83 +vcl2 9 50 1.83 + +gcm 98 7 poly(2) 98 0 30 0 0 1e-5 1e-5 + +* second pole * + +epole 14 98 7 98 1 +rpole 14 15 1 +cpole 15 98 2e-10 + +* reference stage * + +eref 98 0 poly(2) 99 0 50 0 0 0.5 0.5 + +ecmref 30 0 poly(2) 1 0 2 0 0 0.5 0.5 + +* vnoise stage * + +rnoise1 19 98 4.6e-3 +vnoise1 19 98 0 +vnoise2 21 98 0.53 +dnoise1 21 19 dn + +fnoise1 20 98 vnoise1 1 +rnoise2 20 98 1 + +* inoise stage * + +rnoise3 22 98 8.18e-6 +vnoise3 22 98 0 +vnoise4 24 98 0.575 +dnoise2 24 22 dn + +fnoise2 23 98 vnoise3 1 +rnoise4 23 98 1 + +* buffer stage * + +gbuf 98 13 15 98 1e-2 +rbuf 98 13 1e2 + +* output current reflected to supplies * + +fcurr 98 40 voc 1 +vcur1 26 98 0 +vcur2 98 27 0 +dcur1 40 26 d1 +dcur2 27 40 d1 + +* output stage * + +vo1 99 90 0 +vo2 91 50 0 +fout1 0 99 poly(2) vo1 vcur1 -9.27e-3 1 -1 +fout2 50 0 poly(2) vo2 vcur2 -9.27e-3 1 -1 +gout1 90 10 13 99 0.5 +gout2 91 10 13 50 0.5 +rout1 10 90 2 +rout2 10 91 2 +voc 10 28 0 +rout3 28 98 1e6 +dcl3 13 11 d1 +dcl4 12 13 d1 +vcl3 11 10 -0.445 +vcl4 10 12 -0.445 + +.model qp1 pnp(level=1) +.model qp2 pnp(level=1) +.model qn1 npn(level=1) +.model qn2 npn(level=1) +.model d1 d() +.model dn d(af=1 kf=1e-8) +.ends R6 1 Vout1 250 C3 1 0 1.5pF V3 VU1in- Vinput DC 0V diff --git a/tests/general/diffpair.cir b/tests/general/diffpair.cir index 6ec40b457..732d844b8 100644 --- a/tests/general/diffpair.cir +++ b/tests/general/diffpair.cir @@ -1,8 +1,8 @@ simple differential pair - CM and DM dc sensitivity * Models: -.model qnl npn(bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) -.model qnr npn(bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) +.model qnl npn(level=1 bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) +.model qnr npn(level=1 bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) .options noacct diff --git a/tests/general/fourbitadder.cir b/tests/general/fourbitadder.cir index 578e89926..d6b577df9 100644 --- a/tests/general/fourbitadder.cir +++ b/tests/general/fourbitadder.cir @@ -2,7 +2,7 @@ * Models: .MODEL dmod D -.MODEL qmod NPN(BF=75 RB=100 CJE=1PF CJC=3PF) +.MODEL qmod NPN(level=1 BF=75 RB=100 CJE=1PF CJC=3PF) .options noacct diff --git a/tests/general/rca3040.cir b/tests/general/rca3040.cir index 1a1e372ca..d5323916d 100644 --- a/tests/general/rca3040.cir +++ b/tests/general/rca3040.cir @@ -29,6 +29,6 @@ q8 13 13 0 qnl q9 7 8 9 qnl q10 2 15 16 qnl q11 2 14 17 qnl -.model qnl npn bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf -+ cjc=2pf va 50 +.model qnl npn level=1 bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf ++ cjc=2pf va=50 .end diff --git a/tests/general/rtlinv.cir b/tests/general/rtlinv.cir index 22c81aca8..2fee06177 100644 --- a/tests/general/rtlinv.cir +++ b/tests/general/rtlinv.cir @@ -15,8 +15,8 @@ q1 3 2 0 qnd rb2 3 4 10k q2 5 4 0 qnd rc2 6 5 1k -.model qnd npn(bf=50 rb=70 rc=40 ccs=2pf tf=0.1ns tr=10ns cje=0.9pf -+ cjc=1.5pf pc=0.85 va=50) +.model qnd npn(level=1 bf=50 rb=70 rc=40 ccs=2pf tf=0.1ns tr=10ns cje=0.9pf ++ cjc=1.5pf pc=0.85 va=50) .print dc v(3) v(5) .plot dc v(3) .print tran v(3) v(5) diff --git a/tests/general/schmitt.cir b/tests/general/schmitt.cir index 271e50108..81ba08718 100644 --- a/tests/general/schmitt.cir +++ b/tests/general/schmitt.cir @@ -21,9 +21,8 @@ q1 3 2 4 qstd off q2 6 5 4 qstd q3 0 6 7 qstd q4 0 6 7 qstd -.model qstd npn(is=1.0e-16 bf=50 br=0.1 rb=50 rc=10 tf=0.12ns tr=5ns -+ cje=0.4pf pe=0.8 me=0.4 cjc=0.5pf pc=0.8 mc=0.333 ccs=1pf va=50) +.model qstd npn(level=1 is=1.0e-16 bf=50 br=0.1 rb=50 rc=10 tf=0.12ns tr=5ns ++ cje=0.4pf pe=0.8 me=0.4 cjc=0.5pf pc=0.8 mc=0.333 ccs=1pf va=50) .print tran v(1) v(3) v(5) v(6) .plot tran v(3) v(5) v(6) v(1) .end -s diff --git a/tests/sensitivity/diffpair.cir b/tests/sensitivity/diffpair.cir index 899bdf9ee..ddd1b8ef7 100644 --- a/tests/sensitivity/diffpair.cir +++ b/tests/sensitivity/diffpair.cir @@ -1,8 +1,8 @@ simple differential pair - CM and DM dc sensitivity * Models: -.model qnl npn(bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) -.model qnr npn(bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) +.model qnl npn(level=1 bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) +.model qnr npn(level=1 bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) * Circuit description: q1 4 2 6 qnr diff --git a/tests/transient/fourbitadder.cir b/tests/transient/fourbitadder.cir index 578e89926..d6b577df9 100644 --- a/tests/transient/fourbitadder.cir +++ b/tests/transient/fourbitadder.cir @@ -2,7 +2,7 @@ * Models: .MODEL dmod D -.MODEL qmod NPN(BF=75 RB=100 CJE=1PF CJC=3PF) +.MODEL qmod NPN(level=1 BF=75 RB=100 CJE=1PF CJC=3PF) .options noacct diff --git a/tests/transmission/ibm1.cir b/tests/transmission/ibm1.cir index 88eb023e2..ce7969ea3 100644 --- a/tests/transmission/ibm1.cir +++ b/tests/transmission/ibm1.cir @@ -72,7 +72,7 @@ VEN N GND DC -3 .OPTIONS NOACCT .TRAN 0.1N 20N .PRINT TRAN V(3) V(5) V(8) V(11) V(12) -.MODEL JCNTRAN NPN BF=150 VAF=20V IS=4E-17 RB=300 RC=100 CJE=30FF CJC=30FF +.MODEL JCNTRAN NPN level=1 BF=150 VAF=20V IS=4E-17 RB=300 RC=100 CJE=30FF CJC=30FF + CJS=40FF VJE=0.6V VJC=0.6V VJS=0.6 MJE=0.5 MJC=0.5 + MJS=0.5 TF=16PS TR=1NS .END diff --git a/tests/transmission/ltra_1.cir b/tests/transmission/ltra_1.cir index a6d414ca4..37d50403b 100644 --- a/tests/transmission/ltra_1.cir +++ b/tests/transmission/ltra_1.cir @@ -32,13 +32,13 @@ x3 3 4 10 dioload .model lline ltra rel=1 r=0.2 g=0 l=9.13e-9 c=3.65e-12 len=24 steplimit compactrel=1.0e-3 compactabs=1.0e-14 -.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +pe=0.5 pc=0.5) -.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +.model qmodpd npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +pe=0.5 pc=0.5) *.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.15pF is=1e-12 -.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +.model qmodpdmine npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +pe=0.5 pc=0.5) .model dmod1 d(n=2.25 is=1.6399e-4 bv=10) diff --git a/tests/transmission/ltra_2.cir b/tests/transmission/ltra_2.cir index 323a0f490..4e87aa829 100644 --- a/tests/transmission/ltra_2.cir +++ b/tests/transmission/ltra_2.cir @@ -88,13 +88,13 @@ r1 1 2 1.245 * ECL driver and diode receiver models - from Raytheon -.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +pe=0.5 pc=0.5) -.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +.model qmodpd npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +pe=0.5 pc=0.5) *.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.15pF is=1e-12 -.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +.model qmodpdmine npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +pe=0.5 pc=0.5) .model dmod1 d(n=2.25 is=1.6399e-4 bv=10) diff --git a/tests/transmission/ltra_3.cir b/tests/transmission/ltra_3.cir index 7a7b992d6..d79ad9345 100644 --- a/tests/transmission/ltra_3.cir +++ b/tests/transmission/ltra_3.cir @@ -54,15 +54,15 @@ rt2 5 0 50 -*.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +*.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 *+pe=0.5 pc=0.5) -.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +pe=0.5 pc=0.5) -.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +.model qmodpd npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +pe=0.5 pc=0.5) *.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.15pF is=1e-12 -.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +.model qmodpdmine npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +pe=0.5 pc=0.5) .model dmod1 d(n=2.25 is=1.6399e-4 bv=10) diff --git a/tests/transmission/txl4_ksp.cir b/tests/transmission/txl4_ksp.cir index b531f6506..1b55acaaf 100644 --- a/tests/transmission/txl4_ksp.cir +++ b/tests/transmission/txl4_ksp.cir @@ -32,13 +32,13 @@ x3 3 4 10 dioload .model ymod1 txl r=0.2 g=0 l=9.13e-9 c=3.65e-12 length=24 -.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +pe=0.5 pc=0.5) -.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +.model qmodpd npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +pe=0.5 pc=0.5) *.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.15pF is=1e-12 -.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +.model qmodpdmine npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +pe=0.5 pc=0.5) .model dmod1 d(n=2.25 is=1.6399e-4 bv=10) diff --git a/tests/transmission/txl4_sp.cir b/tests/transmission/txl4_sp.cir index 09a6497df..620300dbb 100644 --- a/tests/transmission/txl4_sp.cir +++ b/tests/transmission/txl4_sp.cir @@ -33,13 +33,13 @@ x3 3 4 10 dioload .model lline1 ltra rel=1 r=0.2 g=0 l=9.13e-9 c=3.65e-12 len=24 steplimit .model lline2 ltra level=2 rel=1 r=0.2 g=0 l=9.13e-9 c=3.65e-12 len=24 steplimit debuglevel=2 impresintgrmethod=1 -.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +pe=0.5 pc=0.5) -.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +.model qmodpd npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +pe=0.5 pc=0.5) *.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.15pF is=1e-12 -.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +.model qmodpdmine npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +pe=0.5 pc=0.5) .model dmod1 d(n=2.25 is=1.6399e-4 bv=10) diff --git a/tests/transmission/txl5_ksp.cir b/tests/transmission/txl5_ksp.cir index 915cc6f72..5963e87a5 100644 --- a/tests/transmission/txl5_ksp.cir +++ b/tests/transmission/txl5_ksp.cir @@ -90,13 +90,13 @@ r1 1 2 1.245 * ECL driver and diode receiver models - from Raytheon -.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +pe=0.5 pc=0.5) -.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +.model qmodpd npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +pe=0.5 pc=0.5) *.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.15pF is=1e-12 -.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +.model qmodpdmine npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +pe=0.5 pc=0.5) .model dmod1 d(n=2.25 is=1.6399e-4 bv=10) diff --git a/tests/transmission/txl5_sp.cir b/tests/transmission/txl5_sp.cir index 6178780a0..bc2beb444 100644 --- a/tests/transmission/txl5_sp.cir +++ b/tests/transmission/txl5_sp.cir @@ -90,13 +90,13 @@ r1 1 2 1.245 * ECL driver and diode receiver models - from Raytheon -.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +pe=0.5 pc=0.5) -.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +.model qmodpd npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +pe=0.5 pc=0.5) *.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.15pF is=1e-12 -.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +.model qmodpdmine npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +pe=0.5 pc=0.5) .model dmod1 d(n=2.25 is=1.6399e-4 bv=10) diff --git a/tests/transmission/txl6_ksp.cir b/tests/transmission/txl6_ksp.cir index 6574a8623..15fdb7998 100644 --- a/tests/transmission/txl6_ksp.cir +++ b/tests/transmission/txl6_ksp.cir @@ -54,15 +54,15 @@ rt2 5 0 50 -*.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +*.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 *+pe=0.5 pc=0.5) -.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +pe=0.5 pc=0.5) -.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +.model qmodpd npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +pe=0.5 pc=0.5) *.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.15pF is=1e-12 -.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +.model qmodpdmine npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +pe=0.5 pc=0.5) .model dmod1 d(n=2.25 is=1.6399e-4 bv=10) diff --git a/tests/transmission/txl6_sp.cir b/tests/transmission/txl6_sp.cir index cb537aef4..2298959ec 100644 --- a/tests/transmission/txl6_sp.cir +++ b/tests/transmission/txl6_sp.cir @@ -54,15 +54,15 @@ rt2 5 0 50 -*.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +*.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 *+pe=0.5 pc=0.5) -.model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +.model qmodn npn(level=1 bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12 +pe=0.5 pc=0.5) -.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +.model qmodpd npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12 +pe=0.5 pc=0.5) *.model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.15pF is=1e-12 -.model qmodpdmine npn(bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +.model qmodpdmine npn(level=1 bf=100 rb=100 cje=0.08187pF cjc=0.05pF is=1e-12 +pe=0.5 pc=0.5) .model dmod1 d(n=2.25 is=1.6399e-4 bv=10)