* SPICE netlist
I1 Vg857 Vss {Iref}
M3 Vg43Vd1 Vg43Vd1 Vss Vss N_1u l={Ln} w={Wn}
C1 Vg6Vd24 out {C}
V1 Vdd 0 2.5
V2 Vss 0 -2.5
V3 in+ 0 AC 1
C2 out 0 1p
M1 Vg43Vd1 0 Vd5Vs12 Vd5Vs12 P_1u l={Lp} w={Wp}
M4 Vg6Vd24 Vg43Vd1 Vss Vss N_1u l={Ln} w={Wn}
M6 out Vg6Vd24 Vss Vss N_1u l={Ln} w={Wn}
M2 Vg6Vd24 in+ Vd5Vs12 Vd5Vs12 P_1u l={Lp} w={Wp}
M7 out Vg857 Vdd Vdd P_1u l={Lp} w={Wp}
M5 Vd5Vs12 Vg857 Vdd Vdd P_1u l={Lp} w={Wp}
M8 Vg857 Vg857 Vdd Vdd P_1u l={Lp} w={Wp}
.op dec 100 1 1MEG
.include cmosedu_models.txt
.param Wp=50u
.param Lp=49.984363u
.param Wn=49.994781u
.param Ln=32.155896u
.param C=0.100000p
.param Iref=0.537355u
.meas AC Gain1Hz FIND V(out) AT 1

* LTspice schematic (.asc)
Version 4
SHEET 1 1376 656
WIRE -512 -264 -512 -328
WIRE -416 -264 -416 -328
WIRE -272 -248 -272 -328
WIRE -272 -248 -304 -248
WIRE 48 -248 48 -328
WIRE 80 -248 48 -248
WIRE 448 -248 448 -328
WIRE 480 -248 448 -248
WIRE -112 -232 -224 -232
WIRE 0 -232 -112 -232
WIRE 400 -232 192 -232
WIRE -304 -200 -304 -248
WIRE -272 -200 -304 -200
WIRE 80 -200 80 -248
WIRE 80 -200 48 -200
WIRE 480 -200 480 -248
WIRE 480 -200 448 -200
WIRE -512 -152 -512 -184
WIRE -416 -152 -416 -184
WIRE -272 -104 -272 -152
WIRE -112 -104 -112 -232
WIRE -112 -104 -272 -104
WIRE 192 -104 192 -232
WIRE 192 -104 -112 -104
WIRE 48 -56 48 -152
WIRE 48 -56 -64 -56
WIRE 160 -56 48 -56
WIRE -272 -40 -272 -104
WIRE -64 -8 -64 -56
WIRE -32 -8 -64 -8
WIRE 160 -8 160 -56
WIRE 160 -8 128 -8
WIRE 448 -8 448 -152
WIRE 592 -8 448 -8
WIRE 688 -8 592 -8
WIRE -112 8 -128 8
WIRE -688 24 -688 -56
WIRE -32 40 -32 -8
WIRE -32 40 -64 40
WIRE 128 40 128 -8
WIRE 160 40 128 40
WIRE 592 72 592 -8
WIRE -272 104 -272 40
WIRE -128 120 -128 8
WIRE -688 136 -688 104
WIRE -64 136 -64 88
WIRE 48 136 -64 136
WIRE 160 136 160 88
WIRE 288 136 160 136
WIRE 336 136 288 136
WIRE 448 136 448 -8
WIRE 448 136 400 136
WIRE -64 168 -64 136
WIRE 160 168 160 136
WIRE 448 168 448 136
WIRE -64 216 -96 216
WIRE 192 216 160 216
WIRE 480 216 448 216
WIRE 48 248 48 136
WIRE 48 248 -16 248
WIRE 112 248 48 248
WIRE 288 248 288 136
WIRE 352 248 288 248
WIRE 400 248 352 248
WIRE -96 264 -96 216
WIRE -64 264 -96 264
WIRE 192 264 192 216
WIRE 192 264 160 264
WIRE 480 264 480 216
WIRE 480 264 448 264
WIRE -64 328 -64 264
WIRE 160 328 160 264
WIRE 448 328 448 264
FLAG -272 -328 Vdd
FLAG 48 -328 Vdd
FLAG 448 -328 Vdd
FLAG -128 8 in-
FLAG -272 104 Vss
FLAG 160 328 Vss
FLAG 448 328 Vss
FLAG -64 328 Vss
FLAG -512 -152 0
FLAG -416 -152 0
FLAG -512 -328 Vdd
FLAG -416 -328 Vss
FLAG -688 -56 in+
FLAG -688 136 0
FLAG 592 136 0
FLAG 688 -8 out
FLAG -128 120 0
FLAG 208 8 in+
FLAG -112 -232 Vg857
FLAG 48 248 Vg43Vd1
FLAG 352 248 Vg6Vd24
FLAG 48 -56 Vd5Vs12
SYMBOL current -272 -40 R0
SYMATTR InstName I1
SYMATTR Value {Iref}
SYMBOL nmos4 -16 168 M0
SYMATTR Value N_1u
SYMATTR InstName M3
SYMATTR Value2 l={Ln} w={Wn}
SYMBOL cap 336 120 M90
SYMATTR InstName C1
SYMATTR Value {C}
SYMBOL voltage -512 -280 R0
SYMATTR InstName V1
SYMATTR Value 2.5
SYMBOL voltage -416 -280 R0
SYMATTR InstName V2
SYMATTR Value -2.5
SYMBOL voltage -688 8 R0
SYMATTR Value2 AC 1
SYMATTR Value ""
SYMATTR InstName V3
SYMBOL cap 576 72 R0
SYMATTR InstName C2
SYMATTR Value 1p
SYMBOL pmos4 -112 88 M180
SYMATTR InstName M1
SYMATTR Value2 l={Lp} w={Wp}
SYMATTR Value P_1u
SYMBOL nmos4 112 168 R0
SYMATTR Value N_1u
SYMATTR InstName M4
SYMATTR Value2 l={Ln} w={Wn}
SYMBOL nmos4 400 168 R0
SYMATTR Value N_1u
SYMATTR InstName M6
SYMATTR Value2 l={Ln} w={Wn}
SYMBOL pmos4 208 88 R180
SYMATTR InstName M2
SYMATTR Value2 l={Lp} w={Wp}
SYMATTR Value P_1u
SYMBOL pmos4 400 -152 M180
SYMATTR InstName M7
SYMATTR Value2 l={Lp} w={Wp}
SYMATTR Value P_1u
SYMBOL pmos4 0 -152 M180
SYMATTR InstName M5
SYMATTR Value2 l={Lp} w={Wp}
SYMATTR Value P_1u
SYMBOL pmos4 -224 -152 R180
SYMATTR InstName M8
SYMATTR Value2 l={Lp} w={Wp}
SYMATTR Value P_1u