* SPICE netlist
M1 N002 VIN N003 N003 tsmc018n l=0.18u w=3u
M2 V1 0 N003 N003 tsmc018n l=0.18u w=3u
M3 N002 N002 N001 N001 tsmc018p l=0.18u w=50u
M4 V1 N002 N001 N001 tsmc018p l=0.18u w=50u
M5 N003 N004 N005 N005 tsmc018n l=0.18u w=1800u
M6 N004 N004 N005 N005 tsmc018n l=0.18u w=18u
R1 N001 N004 10k
VDD1 N001 0 0.9
VDD2 0 N005 0.9
VIN VIN 0 SINE(0 5m 1k) AC 1
M8 N001 V2 V3 V3 tsmc018n l=0.18u w=1800u
C1 V3 N005 3p
ROUT V3 N005 30
M9 V3 N004 N005 N005 tsmc018n l=0.18u w=18u
M7 V2 V1 N001 N001 tsmc018p l=0.18u w=18u
R2 V2 N005 8k
.op

* LTspice schematic (.asc)
Version 4
SHEET 1 2512 928
WIRE -808 -464 -1176 -464
WIRE -264 -464 -808 -464
WIRE 56 -464 -264 -464
WIRE 504 -464 56 -464
WIRE 888 -464 504 -464
WIRE -264 -320 -264 -464
WIRE -264 -320 -376 -320
WIRE 56 -320 56 -464
WIRE 168 -320 56 -320
WIRE -1176 -288 -1176 -464
WIRE -264 -288 -264 -320
WIRE 56 -288 56 -320
WIRE -104 -272 -216 -272
WIRE 8 -272 -104 -272
WIRE -376 -240 -376 -320
WIRE -264 -240 -376 -240
WIRE 168 -240 168 -320
WIRE 168 -240 56 -240
WIRE 504 -240 504 -464
WIRE 568 -240 504 -240
WIRE 504 -176 504 -240
WIRE 56 -160 56 -192
WIRE 456 -160 56 -160
WIRE -264 -128 -264 -192
WIRE -104 -128 -104 -272
WIRE -104 -128 -264 -128
WIRE 568 -128 568 -240
WIRE 568 -128 504 -128
WIRE -808 -112 -808 -464
WIRE 56 -112 56 -160
WIRE 888 -112 888 -464
WIRE 952 -64 888 -64
WIRE -1176 -48 -1176 -208
WIRE -1176 -48 -1256 -48
WIRE -264 -48 -264 -128
WIRE 56 -48 56 -112
WIRE 504 -32 504 -80
WIRE 840 -32 504 -32
WIRE -1256 0 -1256 -48
WIRE -184 0 -264 0
WIRE 56 0 -24 0
WIRE 888 16 888 -16
WIRE 952 16 952 -64
WIRE 952 16 888 16
WIRE -312 32 -392 32
WIRE 120 32 104 32
WIRE 120 64 120 32
WIRE 888 64 888 16
WIRE 1208 64 888 64
WIRE -392 80 -392 32
WIRE -264 80 -264 48
WIRE -184 80 -184 0
WIRE -184 80 -264 80
WIRE -24 80 -24 0
WIRE 56 80 56 48
WIRE 56 80 -24 80
WIRE -264 128 -264 80
WIRE -104 128 -264 128
WIRE 56 128 56 80
WIRE 56 128 -104 128
WIRE 1208 160 1208 64
WIRE 1208 160 1160 160
WIRE 1256 160 1208 160
WIRE -1176 176 -1176 -48
WIRE -392 192 -392 160
WIRE 504 192 504 -32
WIRE 1160 192 1160 160
WIRE 1256 192 1256 160
WIRE 888 224 888 64
WIRE -808 256 -808 -32
WIRE -648 256 -808 256
WIRE 984 272 888 272
WIRE 840 304 -424 304
WIRE 1160 304 1160 256
WIRE 1208 304 1160 304
WIRE 1256 304 1256 272
WIRE 1256 304 1208 304
WIRE -808 320 -808 256
WIRE -104 320 -104 128
WIRE 888 336 888 320
WIRE 984 336 984 272
WIRE 984 336 888 336
WIRE -808 368 -888 368
WIRE -24 368 -104 368
WIRE -648 400 -648 256
WIRE -648 400 -760 400
WIRE -424 400 -424 304
WIRE -424 400 -648 400
WIRE -152 400 -424 400
WIRE -24 416 -24 368
WIRE -24 416 -104 416
WIRE -888 432 -888 368
WIRE -808 432 -808 416
WIRE -808 432 -888 432
WIRE -1176 464 -1176 256
WIRE -808 464 -808 432
WIRE -808 464 -1176 464
WIRE -104 464 -104 416
WIRE -104 464 -808 464
WIRE 504 464 504 272
WIRE 504 464 -104 464
WIRE 888 464 888 336
WIRE 888 464 504 464
WIRE 1208 464 1208 304
WIRE 1208 464 888 464
FLAG -392 192 0
FLAG 56 -112 V1
FLAG 504 -32 V2
FLAG 888 64 V3
FLAG -392 32 VIN
FLAG 120 64 0
FLAG -1256 0 0
DATAFLAG 48 224 "I(R1)"
DATAFLAG 592 128 "Is(M3)"
DATAFLAG 912 128 "Is(M4)"
DATAFLAG 1360 192 "Is(M7)"
DATAFLAG 1744 336 "Id(M8)"
DATAFLAG 752 256 ""
DATAFLAG 608 928 ""
DATAFLAG 1136 368 ""
DATAFLAG 1552 496 ""
DATAFLAG 912 368 ""
DATAFLAG 1360 608 ""
DATAFLAG 48 784 ""
DATAFLAG 1744 688 "Id(M9)"
DATAFLAG 752 656 ""
DATAFLAG 752 752 "Id(M5)"
DATAFLAG 1856 592 ""
DATAFLAG 1584 832 ""
SYMBOL nmos4 -312 -48 R0
SYMATTR InstName M1
SYMATTR Value tsmc018n
SYMATTR Value2 l=0.18u w=3u
SYMBOL nmos4 104 -48 M0
SYMATTR InstName M2
SYMATTR Value tsmc018n
SYMATTR Value2 l=0.18u w=3u
SYMBOL pmos4 -216 -192 R180
SYMATTR InstName M3
SYMATTR Value tsmc018p
SYMATTR Value2 l=0.18u w=50u
SYMBOL pmos4 8 -192 M180
SYMATTR InstName M4
SYMATTR Value tsmc018p
SYMATTR Value2 l=0.18u w=50u
SYMBOL nmos4 -152 320 R0
SYMATTR InstName M5
SYMATTR Value tsmc018n
SYMATTR Value2 l=0.18u w=1800u
SYMBOL nmos4 -760 320 M0
SYMATTR InstName M6
SYMATTR Value tsmc018n
SYMATTR Value2 l=0.18u w=18u
SYMBOL res -824 -128 R0
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL voltage -1176 -304 R0
SYMATTR InstName VDD1
SYMATTR Value 0.9
SYMBOL voltage -1176 160 R0
SYMATTR InstName VDD2
SYMATTR Value 0.9
SYMBOL voltage -392 64 R0
SYMATTR Value2 AC 1
SYMATTR InstName VIN
SYMATTR Value SINE(0 5m 1k)
SYMBOL nmos4 840 -112 R0
SYMATTR InstName M8
SYMATTR Value tsmc018n
SYMATTR Value2 l=0.18u w=1800u
SYMBOL cap 1144 192 R0
SYMATTR InstName C1
SYMATTR Value 3p
SYMBOL res 1240 176 R0
SYMATTR InstName ROUT
SYMATTR Value 30
SYMBOL nmos4 840 224 R0
SYMATTR InstName M9
SYMATTR Value tsmc018n
SYMATTR Value2 l=0.18u w=18u
SYMBOL pmos4 456 -80 M180
SYMATTR InstName M7
SYMATTR Value tsmc018p
SYMATTR Value2 l=0.18u w=18u
SYMBOL res 488 176 R0
SYMATTR InstName R2
SYMATTR Value 8k