Using: /afs/ece.ucdavis.edu/common/pkg/avanti/2003.09/RH72/hspice ****** HSPICE -- U-2003.09-SP1 (20031115) 12:24:56 11/15/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: 6spice lic: lic: FLEXlm: v6.1g lic: USER: lewis HOSTNAME: cuda lic: HOSTID: 0008744135aa PID: 11876 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: 6(in_use)/50 FLOATING license(s) on SERVER oak lic: Init: read login configuration file: /home/lewis/meta.cfg * * power supplies * vsup 100 0 2.5 vsupn 200 0 -2.5 .global 100 200 * * amplifier subcircuit * .subckt amp (p n out) m1 3 p s s cmosn l=length w=wn m2 out n s s cmosn l=length w=wn m3 3 3 100 100 cmosp l=length w=wp m4 out 3 100 100 cmosp l=length w=wp .param wp=100u wn=50u length=1u * the problem does not specify whether to include the body effect. * the body effect is ignored here by connecting * the source to the well for both m1 and m2. it s 200 100u rt s 200 1meg *for n-chan, kp = un*cox = 550*1.38e-7 = 127 ua/v**2 *for p-chan, kp = up*cox = 250*1.38e-7 = 58 ua/v**2 .model cmosn nmos level=1 lambda=0.105263 vto=0.7 kp=127u ld=0.12u .model cmosp pmos level=1 lambda=0.0625 vto=-0.7 kp= 58u ld=0.18u .ends amp * * two identical copies of the amplifier are used. one is used to find * the dm gain. the other is used to find the cm gain. these two * simulations could have been run one after the other using one circuit, * but this approach does not allow spice to calculate the cmrr. * * * amplifier with dm input * xdm (p 0 out_dm) amp * * amplifier with cm input * xcm (p n out_cm) amp * * inputs * vi p 0 0 ac 1 eic n 0 p 0 1 * * analysis * .options nopage nomod .tf v(out_dm) vi .dc vi -0.1 0.1 0.01 .plot dc v(out_dm) .ac dec 1 1 10 .measure ac dm_gain find vm(out_dm) at=1 .measure ac cm_gain find vm(out_cm) at=1 .measure cmrr param='dm_gain/cm_gain' .end ****** HSPICE -- U-2003.09-SP1 (20031115) 12:24:56 11/15/2004 linux ****** diff pair with active load - problem set #6, problem 1 ****** circuit name directory ****** circuit number to circuit name directory number circuitname definition multiplier 0 main circuit 1 xdm. amp 1.00 2 xcm. amp 1.00 ****** diff pair with active load - problem set #6, problem 1 ****** dc transfer curves tnom= 25.000 temp= 25.000 ****** a volt v(out_dm) (a ) -1.0000 0. 1.0000 2.0000 3.0000 + + + + + -100.0000m -857.316m-+-a----+------+------+------+------+------+------+------+- -90.0000m -844.887m + a + + + + + + + + -80.0000m -832.039m + a + + + + + + + + -70.0000m -818.640m + a + + + + + + + + -60.0000m -804.479m + a + + + + + + + + -50.0000m -789.196m + a + + + + + + + + -40.0000m -772.089m + a + + + + + + + + -30.0000m -751.405m + a + + + + + + + + -20.0000m -717.633m + a + + + + + + + + -10.0000m 340.753m + + + a + + + + + + -3.4694a 1.697 -+------+------+------+------+------+--a---+------+------+- 10.0000m 2.426 + + + + + + + a+ + 20.0000m 2.446 + + + + + + + a+ + 30.0000m 2.458 + + + + + + + a+ + 40.0000m 2.466 + + + + + + + a + 50.0000m 2.474 + + + + + + + a + 60.0000m 2.479 + + + + + + + a + 70.0000m 2.484 + + + + + + + a + 80.0000m 2.488 + + + + + + + a + 90.0000m 2.492 + + + + + + + a + 100.0000m 2.495 -+------+------+------+------+------+------+------a------+- + + + + + b ****** HSPICE -- U-2003.09-SP1 (20031115) 12:24:56 11/15/2004 linux ****** diff pair with active load - problem set #6, problem 1 ****** 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:100 = 2.5000 0:200 = -2.5000 0:n = 0. +0:out_cm = 1.6966 0:out_dm = 1.6966 0:p = 0. +1:3 = 1.6966 1:s =-798.1860m 2:3 = 1.6966 +2:s =-798.1860m **** voltage sources subckt element 0:vsup 0:vsupn 0:vi volts 2.5000 -2.5000 0. current -203.4036u 203.4036u 0. power 508.5091u 508.5091u 0. total voltage source power dissipation= 1.0170m watts ***** current sources subckt xdm xcm element 1:it 2:it volts 1.7018 1.7018 current 100.0000u 100.0000u power -170.1814u -170.1814u total current source power dissipation=-340.3628u watts **** resistors subckt xdm xcm element 1:rt 2:rt r value 1.0000x 1.0000x v drop 1.7018 1.7018 current 1.7018u 1.7018u power 2.8962u 2.8962u **** voltage-controlled voltage sources subckt element 0:eic volts 0. current 0. **** mosfets subckt xdm xdm xdm xdm xcm xcm element 1:m1 1:m2 1:m3 1:m4 2:m1 2:m2 model 1:cmosn 1:cmosn 1:cmosp 1:cmosp 2:cmosn 2:cmosn region Saturati Saturati Saturati Saturati Saturati Saturati id 50.8509u 50.8509u -50.8509u -50.8509u 50.8509u 50.8509u ibs 0. 0. 0. 0. 0. 0. ibd -24.9481f -24.9481f 8.0337f 8.0337f -24.9481f -24.9481f vgs 798.1860m 798.1860m -803.3718m -803.3718m 798.1860m 798.1860m vds 2.4948 2.4948 -803.3718m -803.3718m 2.4948 2.4948 vbs 0. 0. 0. 0. 0. 0. vth 700.0000m 700.0000m -700.0000m -700.0000m 700.0000m 700.0000m vdsat 98.1860m 98.1860m -103.3718m -103.3718m 98.1860m 98.1860m beta 10.5495m 10.5495m 9.5175m 9.5175m 10.5495m 10.5495m gam eff 527.6252m 527.6252m 527.6252m 527.6252m 527.6252m 527.6252m gm 1.0358m 1.0358m 983.8448u 983.8448u 1.0358m 1.0358m gds 4.2394u 4.2394u 3.0262u 3.0262u 4.2394u 4.2394u gmb 358.8562u 358.8562u 340.8535u 340.8535u 358.8562u 358.8562u cdtot 2.1155f 2.1155f 6.2393f 6.2393f 2.1155f 2.1155f cgtot 13.5068f 13.5068f 28.1103f 28.1103f 13.5068f 13.5068f cstot 10.8199f 10.8199f 20.9491f 20.9491f 10.8199f 10.8199f cbtot 571.3644a 571.3644a 921.8484a 921.8484a 571.3644a 571.3644a cgs 10.8199f 10.8199f 20.9491f 20.9491f 10.8199f 10.8199f cgd 2.1155f 2.1155f 6.2393f 6.2393f 2.1155f 2.1155f subckt xcm xcm element 2:m3 2:m4 model 2:cmosp 2:cmosp region Saturati Saturati id -50.8509u -50.8509u ibs 0. 0. ibd 8.0337f 8.0337f vgs -803.3718m -803.3718m vds -803.3718m -803.3718m vbs 0. 0. vth -700.0000m -700.0000m vdsat -103.3718m -103.3718m beta 9.5175m 9.5175m gam eff 527.6252m 527.6252m gm 983.8448u 983.8448u gds 3.0262u 3.0262u gmb 340.8535u 340.8535u cdtot 6.2393f 6.2393f cgtot 28.1103f 28.1103f cstot 20.9491f 20.9491f cbtot 921.8484a 921.8484a cgs 20.9491f 20.9491f cgd 6.2393f 6.2393f **** small-signal transfer characteristics v(out_dm)/vi = 142.3436 input resistance at vi = 9.999e+19 output resistance at v(out_dm) = 137.9296k ****** diff pair with active load - problem set #6, problem 1 ****** ac analysis tnom= 25.000 temp= 25.000 ****** dm_gain= 1.4234E+02 cm_gain= 5.0434E-04 cmrr= 2.8224E+05 ***** job concluded ****** HSPICE -- U-2003.09-SP1 (20031115) 12:24:56 11/15/2004 linux ****** diff pair with active load - problem set #6, problem 1 ****** job statistics summary tnom= 25.000 temp= 25.000 ****** total memory used 157 kbytes # nodes = 11 # elements= 16 # diodes= 0 # bjts = 0 # jfets = 0 # mosfets = 8 analysis time # points tot. iter conv.iter op point 0.00 1 6 dc sweep 0.00 21 61 ac analysis 0.00 2 2 readin 0.02 errchk 0.02 setup 0.00 output 0.00 total cpu time 0.05 seconds job started at 12:24:56 11/15/2004 job ended at 12:24:57 11/15/2004 lic: Release hspice token(s) HSPICE job 6spice completed. Mon Nov 15 12:24:57 PST 2004