* SPICE netlist
VDD VDD 0 5
MSU3 N007 N007 0 0 N_1u l=10u w=10u
MSU1 vsuref Vbias1 VDD VDD P_1u l=2u w=30u
M3T N001 Vbias1 VDD VDD P_1u l=2u w=30u
M3B N003 Vbias2 N001 VDD P_1u l=2u w=30u
M4T Vbias1 Vbias1 VDD VDD P_1u l=2u w=30u
M4B Vbias2 Vbias2 Vbias1 VDD P_1u l=2u w=30u
M2B N005 N004 N008 0 N_1u l=2u w=10u
M1B N004 N004 P001 0 N_1u l=2u w=10u
R1 N008 N009 52k TC1=0.002
M2T Vbias2 N003 N005 0 N_1u l=2u w=10u
M1T N003 N003 N004 0 N_1u l=2u w=10u
D1 P001 0 PNPDIODE
MSU2 N003 vsuref Vbias2 VDD P_1u l=1u w=10u
MSU4 N006 N006 N007 0 N_1u l=10u w=10u
MSU5 vsuref vsuref N006 0 N_1u l=10u w=10u
D2 N009 0 PNPDIODE 8
M1 N002 Vbias1 VDD VDD P_1u l=2u w=30u
M2 VREF Vbias2 N002 VDD P_1u l=2u w=30u
R2 VREF 0 2.5Meg TC1=0.002
.include cmosedu_models.txt
.dc VDD 4 6
.step temp list 0 25 50 75 100

* LTspice schematic (.asc)
Version 4
SHEET 1 1168 736
WIRE -392 -336 -392 -368
WIRE -392 -320 -392 -336
WIRE -8 -288 -88 -288
WIRE 56 -288 -8 -288
WIRE 72 -288 56 -288
WIRE 392 -288 376 -288
WIRE -72 -192 -472 -192
WIRE 56 -192 56 -288
WIRE 120 -192 120 -208
WIRE 120 -192 56 -192
WIRE -136 -176 -136 -208
WIRE 120 -176 120 -192
WIRE 440 -176 440 -208
WIRE -472 -160 -472 -192
WIRE -72 -160 -72 -192
WIRE -72 -160 -88 -160
WIRE -8 -160 -72 -160
WIRE 56 -160 -8 -160
WIRE 72 -160 56 -160
WIRE 392 -160 376 -160
WIRE -584 -144 -584 -208
WIRE -520 -144 -584 -144
WIRE -584 -96 -584 -144
WIRE -136 -64 -136 -80
WIRE -136 -64 -472 -64
WIRE -72 -64 -136 -64
WIRE 56 -64 56 -160
WIRE 120 -64 120 -80
WIRE 120 -64 56 -64
WIRE -584 -32 -584 -96
WIRE -536 -32 -584 -32
WIRE 440 -32 440 -80
WIRE 552 -32 440 -32
WIRE 584 -32 552 -32
WIRE 440 -16 440 -32
WIRE -72 16 -72 -64
WIRE -72 16 -88 16
WIRE 72 16 -72 16
WIRE -536 48 -536 -32
WIRE -136 48 -136 32
WIRE -72 48 -136 48
WIRE 120 48 120 32
WIRE -536 64 -584 64
WIRE -72 128 -72 48
WIRE -72 128 -88 128
WIRE 72 128 -72 128
WIRE 440 128 440 64
WIRE -536 144 -536 64
WIRE -536 160 -584 160
WIRE 120 208 120 144
WIRE -536 240 -536 160
WIRE -584 288 -584 256
WIRE 120 304 120 288
FLAG -392 -240 0
FLAG -392 -336 VDD
FLAG -584 208 0
FLAG -584 288 0
FLAG -584 -256 VDD
FLAG -584 -304 VDD
FLAG -136 -256 VDD
FLAG -136 -304 VDD
FLAG -136 -128 VDD
FLAG 120 -256 VDD
FLAG 120 -304 VDD
FLAG 120 -128 VDD
FLAG 120 96 0
FLAG -136 96 0
FLAG -136 208 0
FLAG 120 -16 0
FLAG -136 -16 0
FLAG -472 -112 VDD
FLAG -584 112 0
FLAG -584 16 0
FLAG -584 -96 vsuref
FLAG -8 -288 Vbias1
FLAG -536 -288 Vbias1
FLAG 120 368 0
FLAG -8 -160 Vbias2
FLAG 440 -256 VDD
FLAG 440 -304 VDD
FLAG 440 -128 VDD
FLAG 376 -288 Vbias1
FLAG 376 -160 Vbias2
FLAG 440 128 0
FLAG 552 -32 VREF
SYMBOL voltage -392 -336 R0
SYMATTR InstName VDD
SYMATTR Value 5
SYMBOL nmos4 -536 160 M0
SYMATTR Value2 l=10u w=10u
SYMATTR InstName MSU3
SYMATTR Value N_1u
SYMBOL pmos4 -536 -208 R180
SYMATTR InstName MSU1
SYMATTR Value P_1u
SYMATTR Value2 l=2u w=30u
SYMBOL pmos4 -88 -208 R180
SYMATTR InstName M3T
SYMATTR Value P_1u
SYMATTR Value2 l=2u w=30u
SYMBOL pmos4 -88 -80 R180
SYMATTR InstName M3B
SYMATTR Value P_1u
SYMATTR Value2 l=2u w=30u
SYMBOL pmos4 72 -208 M180
SYMATTR InstName M4T
SYMATTR Value P_1u
SYMATTR Value2 l=2u w=30u
SYMBOL pmos4 72 -80 M180
SYMATTR InstName M4B
SYMATTR Value P_1u
SYMATTR Value2 l=2u w=30u
SYMBOL nmos4 72 48 R0
SYMATTR Value2 l=2u w=10u
SYMATTR InstName M2B
SYMATTR Value N_1u
SYMBOL nmos4 -88 48 M0
SYMATTR Value2 l=2u w=10u
SYMATTR InstName M1B
SYMATTR Value N_1u
SYMBOL res 104 192 R0
SYMATTR InstName R1
SYMATTR Value 52k TC1=0.002
SYMBOL nmos4 72 -64 R0
SYMATTR Value2 l=2u w=10u
SYMATTR InstName M2T
SYMATTR Value N_1u
SYMBOL nmos4 -88 -64 M0
SYMATTR Value2 l=2u w=10u
SYMATTR InstName M1T
SYMATTR Value N_1u
SYMBOL diode -152 144 R0
SYMATTR InstName D1
SYMATTR Value PNPDIODE
SYMBOL pmos4 -520 -64 M180
SYMATTR InstName MSU2
SYMATTR Value P_1u
SYMATTR Value2 l=1u w=10u
SYMBOL nmos4 -536 64 M0
SYMATTR Value2 l=10u w=10u
SYMATTR InstName MSU4
SYMATTR Value N_1u
SYMBOL nmos4 -536 -32 M0
SYMATTR Value2 l=10u w=10u
SYMATTR InstName MSU5
SYMATTR Value N_1u
SYMBOL diode 104 304 R0
SYMATTR InstName D2
SYMATTR Value PNPDIODE 8
SYMBOL pmos4 392 -208 M180
SYMATTR InstName M1
SYMATTR Value P_1u
SYMATTR Value2 l=2u w=30u
SYMBOL pmos4 392 -80 M180
SYMATTR InstName M2
SYMATTR Value P_1u
SYMATTR Value2 l=2u w=30u
SYMBOL res 424 -32 R0
SYMATTR InstName R2
SYMATTR Value 2.5MEG TC1=0.002