Using: /afs/ece.ucdavis.edu/common/pkg/avanti/2003.09/RH72/hspice ****** HSPICE -- U-2003.09-SP1 (20031115) 10:29:59 11/01/2004 linux Copyright (C) 2003 Synopsys, Inc. All Rights Reserved. Unpublished-rights reserved under US copyright laws. This program is protected by law and is subject to the terms and conditions of the license agreement found in: /afs/ece.ucdavis.edu/common/pkg/avanti/2003.09/license.txt Use of this program is your acceptance to be bound by this license agreement. HSPICE is the trademark of Synopsys, Inc. Input File: 4_2spice lic: lic: FLEXlm: v6.1g lic: USER: lewis HOSTNAME: cuda lic: HOSTID: 0008744135aa PID: 5592 lic: Using FLEXlm license file: lic: /usr/pkg/hspice/license.dat lic: Checkout hspice; Encryption code: 4DD143BC720D5A436040 lic: License/Maintenance for hspice will expire on 27-nov-2005/2004.09 lic: 2(in_use)/50 FLOATING license(s) on SERVER oak lic: Init: read login configuration file: /home/lewis/meta.cfg * * specify the width & length in one place, for easier changes. * .param width=18u length=0.5u *in the hand calculation, the required width was calculated to be 16.5 microns *however, trial and error in spice shows that the width has to be increased *to 18 microns to operate m1 barely in the active region. *this difference stems from the observation that all the transistors *do not operate at equal currents. to overcome this problem in practice, *the w/l of m4 would be reduced to increase the drain-source voltage on m1. *this change would also be used to make sure that m1 operates slightly *beyond the edge of the triode region even when body effect is taken *into account. * * power supply * vdd vdd 0 3 * * input * ir vdd 4 51.9u *note that ir > 50 ua because this current mirror has a nonzero *systematic offset. ir = 51.9 ua is chosen by trial and error *to force the output current to be 50 ua, as given in the problem. * * test circuit * vo out 0 0.2 m1 1 3 0 0 cmosn l=length w=width m2 out 6 1 1 cmosn l=length w=width m3 3 3 0 0 cmosn l=length w=width m4a 4 4 a3 a3 cmosn l=length w=width m4b a3 4 b3 b3 cmosn l=length w=width m4c b3 4 c3 c3 cmosn l=length w=width m4d c3 4 3 3 cmosn l=length w=width *note that 4 transistors are used in series to build m4 to desensitize *the circuit to variations in delta w and delta l. *in practice, 5 or more transistors would be used to push *m1 past the edge of saturation and to overcome body-effect mismatches. m5 vdd 4 6 6 cmosn l=length w=width m6 6 3 0 0 cmosn l=length w=width *note that connecting the body to the source eliminates the body effect. *remember that i asked you to ignore body effect for this problem. * * models * .model cmosn nmos level=1 lambda=0.0625 vto=0.6 kp=194u ld=0.09u *note that lambda = (dxd/dvds)/leff = 0.02/0.32 * * don't print the model parameters * .options nomod * * analysis * .op .dc vo 0 3 0.1 .print dc i(m2) .tf v(out) vo .end ****** eec210 cascode current mirror with level shift - problem set #4 problem 2 ****** dc transfer curves tnom= 25.000 temp= 25.000 ****** x volt current m2 0. 0. 100.00000m 44.7050u 200.00000m 50.0556u 300.00000m 50.0565u 400.00000m 50.0574u 500.00000m 50.0583u 600.00000m 50.0592u 700.00000m 50.0601u 800.00000m 50.0609u 900.00000m 50.0618u 1.00000 50.0627u 1.10000 50.0635u 1.20000 50.0644u 1.30000 50.0652u 1.40000 50.0660u 1.50000 50.0668u 1.60000 50.0677u 1.70000 50.0685u 1.80000 50.0693u 1.90000 50.0701u 2.00000 50.0708u 2.10000 50.0716u 2.20000 50.0724u 2.30000 50.0732u 2.40000 50.0739u 2.50000 50.0747u 2.60000 50.0754u 2.70000 50.0762u 2.80000 50.0769u 2.90000 50.0776u 3.00000 50.0784u y 1 ****** HSPICE -- U-2003.09-SP1 (20031115) 10:29:59 11/01/2004 linux ****** eec210 cascode current mirror with level shift - problem set #4 problem 2 ****** operating point information tnom= 25.000 temp= 25.000 ****** ***** operating point status is all simulation time is 0. node =voltage node =voltage node =voltage +0:1 = 102.1590m 0:3 = 695.4766m 0:4 = 1.4894 +0:6 = 797.6484m 0:a3 = 793.8904m 0:b3 = 752.9722m +0:c3 = 721.7453m 0:out = 200.0000m 0:vdd = 3.0000 **** voltage sources subckt element 0:vdd 0:vo volts 3.0000 200.0000m current -104.1176u -50.0556u power 312.3528u 10.0111u total voltage source power dissipation= 322.3640u watts ***** current sources subckt element 0:ir volts 1.5106 current 51.9000u power -78.4019u total current source power dissipation= -78.4019u watts **** mosfets subckt element 0:m1 0:m2 0:m3 0:m4a 0:m4b 0:m4c model 0:cmosn 0:cmosn 0:cmosn 0:cmosn 0:cmosn 0:cmosn region Saturati Saturati Saturati Saturati Linear Linear id 50.0556u 50.0556u 51.9000u 51.9000u 51.9000u 51.9000u ibs 0. 0. 0. 0. 0. 0. ibd -1.0216f -978.4104a -6.9548f -6.9548f -409.1820a -312.2691a vgs 695.4766m 695.4894m 695.4766m 695.4766m 736.3948m 767.6218m vds 102.1590m 97.8410m 695.4766m 695.4766m 40.9182m 31.2269m vbs 0. 0. 0. 0. 0. 0. vth 600.0000m 600.0000m 600.0000m 600.0000m 600.0000m 600.0000m vdsat 95.4766m 95.4894m 95.4766m 95.4766m 40.9182m 31.2269m beta 10.9822m 10.9792m 11.3868m 11.3868m 10.9404m 10.9338m gam eff 527.6252m 527.6252m 527.6252m 527.6252m 527.6252m 527.6252m gm 1.0485m 1.0484m 1.0872m 1.0872m 447.6618u 341.4287u gds 3.1086u 3.1095u 3.1086u 3.1086u 1.0478m 1.4946m gmb 363.2676u 363.2189u 376.6530u 376.6530u 155.0927u 118.2882u cdtot 559.6802a 1.7006f 561.2537a 561.2537a 1.4266f 1.4823f cgtot 2.5337f 3.6683f 2.5353f 2.5353f 3.1526f 3.1554f cstot 1.8854f 1.8790f 1.8854f 1.8854f 1.6606f 1.6185f cbtot 88.6388a 88.6290a 88.6388a 88.6388a 65.4479a 54.5550a cgs 1.8854f 1.8790f 1.8854f 1.8854f 1.6606f 1.6185f cgd 559.6802a 1.7006f 561.2537a 561.2537a 1.4266f 1.4823f subckt element 0:m4d 0:m5 0:m6 model 0:cmosn 0:cmosn 0:cmosn region Linear Saturati Saturati id 51.9000u 52.2176u 52.2176u ibs 0. 0. 0. ibd -262.6865a -22.0235f -7.9765f vgs 793.8904m 691.7186m 695.4766m vds 26.2687m 2.2024 797.6484m vbs 0. 0. 0. vth 600.0000m 600.0000m 600.0000m vdsat 26.2687m 91.7186m 95.4766m beta 10.9304m 12.4146m 11.4565m gam eff 527.6252m 527.6252m 527.6252m gm 287.1273u 1.1386m 1.0938m gds 1.8354m 2.8687u 3.1086u gmb 99.4754u 394.4851u 378.9580u cdtot 1.5040f 565.2500a 561.5247a cgtot 3.1522f 2.5423f 2.5356f cstot 1.6003f 1.8854f 1.8854f cbtot 47.8549a 91.6204a 88.6388a cgs 1.6003f 1.8854f 1.8854f cgd 1.5040f 565.2500a 561.5247a **** small-signal transfer characteristics v(out)/vo = 1.0000 input resistance at vo = 109.1042x output resistance at v(out) = 0. ***** job concluded 1 ****** HSPICE -- U-2003.09-SP1 (20031115) 10:29:59 11/01/2004 linux ****** eec210 cascode current mirror with level shift - problem set #4 problem 2 ****** job statistics summary tnom= 25.000 temp= 25.000 ****** total memory used 156 kbytes # nodes = 11 # elements= 13 # diodes= 0 # bjts = 0 # jfets = 0 # mosfets = 9 analysis time # points tot. iter conv.iter op point 0.02 1 8 dc sweep 0.00 31 70 readin 0.01 errchk 0.00 setup 0.00 output 0.00 total cpu time 0.02 seconds job started at 10:29:59 11/01/2004 job ended at 10:29:59 11/01/2004 lic: Release hspice token(s) HSPICE job 4_2spice completed. Mon Nov 1 10:29:59 PST 2004