* SPICE netlist
V1 Vdd 0 5
V2 Vreset 0 PULSE(0 5 0 1p 1p 'treset1' 'tperiodo' 4)
V3 Vtransfer 0 PULSE(0 5 0 1p 1p 'ttransfer1' 'tperiodo' 4)
M1 FD Vtransfer2 Vdiodo 0 CMOSN l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
D1 0 Vdiodo D
C1 Vdiodo 0 100f
V4 Vrowselect 0 PULSE(0 5 'rowselect' 1p 1p 0.5m 'tperiodo' 4)
M2 Vdd Vreset2 FD 0 CMOSN l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
M3 Vdd FD N001 0 CMOSN l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
M4 out Vrowselect N001 0 CMOSN l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
I2 out 0 1n
V5 Vreset2 Vreset PULSE(0 5 'treset2' 1p 1p 0.25m 'tperiodo' 4)
V6 Vtransfer2 Vtransfer PULSE(0 5 'ttransfer2' 1p 1p 0.5m 'tperiodo' 4)
G1 Vdiodo 0 Vsweep 0 1
V7 Vswcurrent1 0 PULSE(0 'current1' 0 1p 1p 'tswcurrent' 'tperiodo' 1)
V8 Vswcurrent2 Vswcurrent1 PULSE(0 'current2' 5m 1p 1p 'tswcurrent' 'tperiodo' 1)
V9 Vswcurrent3 Vswcurrent2 PULSE(0 'current3' 10m 1p 1p 'tswcurrent' 'tperiodo' 1)
V10 Vswcurrent4 Vswcurrent3 PULSE(0 'current4' 15m 1p 1p 'tswcurrent' 'tperiodo' 1)
V11 Vsweep 0 PULSE(0 'currentsweep' 0 1p 1p 'tswcurrent' 'tperiodo' 1)
.tran 5m *Solo un ciclo
.param tperiodo = 5m
.param treset1 = 0.25m
.param ttransfer1 = 0.20m
.include IEE3433Lib_TT.sp
.param rowselect = 4m
.param Lmin = 0.6u, W = 3u, Ld=1.2u
.param treset2 = 2.5m
.param ttransfer2 = 3m
.param tswcurrent = 3m
.param current1 = 100p, current2= 50p, current3=10p, current4=0p
.MEAS TRAN vout1 FIND V(out) AT 4.25m
.MEAS TRAN vout2 FIND V(out) AT 9.25m
.MEAS TRAN vout3 FIND V(out) AT 14.25m
.MEAS TRAN vout4 FIND V(out) AT 19.25m
.param currentsweep=100p

* LTspice schematic (.asc)
Version 4
SHEET 1 2608 496
WIRE -312 -200 -312 -248
WIRE -504 -120 -504 -152
WIRE -424 -120 -504 -120
WIRE -360 -120 -424 -120
WIRE -504 -104 -504 -120
WIRE -1208 -72 -1224 -72
WIRE -1096 -72 -1112 -72
WIRE -312 -72 -312 -104
WIRE -200 -72 -312 -72
WIRE -56 -72 -104 -72
WIRE -40 -72 -56 -72
WIRE 920 -56 920 -72
WIRE 936 -56 920 -56
WIRE 1096 -56 1096 -72
WIRE 1112 -56 1096 -56
WIRE 1288 -56 1288 -72
WIRE 1304 -56 1288 -56
WIRE -56 -8 -56 -72
WIRE -504 8 -504 -8
WIRE -440 8 -504 8
WIRE -376 8 -440 8
WIRE -328 8 -376 8
WIRE -504 40 -504 8
WIRE -440 40 -440 8
WIRE -328 40 -328 8
WIRE -504 136 -504 104
WIRE -440 136 -440 104
WIRE -328 136 -328 120
WIRE -280 136 -280 104
WIRE -200 136 -280 136
WIRE -56 136 -56 72
FLAG -1288 248 0
FLAG -1192 248 0
FLAG -1096 248 0
FLAG -1288 168 Vdd
FLAG -1192 168 Vreset
FLAG -1096 168 Vtransfer
FLAG -440 136 0
FLAG -504 136 0
FLAG -328 136 0
FLAG -504 -56 0
FLAG -552 -24 Vtransfer2
FLAG -1304 -72 0
FLAG -1304 -152 Vrowselect
FLAG -552 -168 Vreset2
FLAG -504 -248 Vdd
FLAG -504 -200 0
FLAG -312 -248 Vdd
FLAG -312 -152 0
FLAG -56 136 0
FLAG -152 -72 0
FLAG -184 -120 Vrowselect
FLAG -1208 -72 Vreset
FLAG -1224 -152 Vreset2
FLAG -1096 -72 Vtransfer
FLAG -1112 -152 Vtransfer2
FLAG -376 8 Vdiodo
FLAG -280 56 0
FLAG 824 -72 0
FLAG 824 -152 Vswcurrent1
FLAG -200 104 Vswcurrent4
FLAG 920 -152 Vswcurrent2
FLAG 936 -56 Vswcurrent1
FLAG 1112 -56 Vswcurrent2
FLAG 1096 -152 Vswcurrent3
FLAG 1304 -56 Vswcurrent3
FLAG 1288 -152 Vswcurrent4
FLAG -424 -120 FD
FLAG -40 -72 out
IOPIN 352 -192 Out
FLAG 824 184 0
FLAG 824 104 Vsweep
FLAG -200 136 Vsweep
SYMBOL voltage -1288 152 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage -1192 152 R0
SYMATTR Value PULSE(0 5 0 1p 1p 'treset1' 'tperiodo' 4)
SYMATTR InstName V2
SYMBOL voltage -1096 152 R0
SYMATTR Value PULSE(0 5 0 1p 1p 'ttransfer1' 'tperiodo' 4)
SYMATTR InstName V3
SYMBOL nmos4 -552 -104 R0
SYMATTR InstName M1
SYMATTR Value CMOSN
SYMATTR Value2 l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
SYMBOL diode -488 104 R180
SYMATTR InstName D1
SYMBOL cap -456 40 R0
SYMATTR InstName C1
SYMATTR Value 100f
SYMBOL voltage -1304 -168 R0
SYMATTR Value PULSE(0 5 'rowselect' 1p 1p 0.5m 'tperiodo' 4)
SYMATTR InstName V4
SYMBOL nmos4 -552 -248 R0
SYMATTR InstName M2
SYMATTR Value CMOSN
SYMATTR Value2 l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
SYMBOL nmos4 -360 -200 R0
SYMATTR InstName M3
SYMATTR Value CMOSN
SYMATTR Value2 l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
SYMBOL nmos4 -104 -120 R90
SYMATTR InstName M4
SYMATTR Value CMOSN
SYMATTR Value2 l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
SYMBOL current -56 -8 R0
SYMATTR InstName I2
SYMATTR Value 1n
SYMBOL voltage -1224 -168 R0
SYMATTR Value PULSE(0 5 'treset2' 1p 1p 0.25m 'tperiodo' 4)
SYMATTR InstName V5
SYMBOL voltage -1112 -168 R0
SYMATTR Value PULSE(0 5 'ttransfer2' 1p 1p 0.5m 'tperiodo' 4)
SYMATTR InstName V6
SYMBOL g -328 136 R180
SYMATTR InstName G1
SYMATTR Value 1
SYMBOL voltage 824 -168 R0
SYMATTR Value PULSE(0 'current1' 0 1p 1p 'tswcurrent' 'tperiodo' 1)
SYMATTR InstName V7
SYMBOL voltage 920 -168 R0
SYMATTR Value PULSE(0 'current2' 5m 1p 1p 'tswcurrent' 'tperiodo' 1)
SYMATTR InstName V8
SYMBOL voltage 1096 -168 R0
SYMATTR Value PULSE(0 'current3' 10m 1p 1p 'tswcurrent' 'tperiodo' 1)
SYMATTR InstName V9
SYMBOL voltage 1288 -168 R0
SYMATTR Value PULSE(0 'current4' 15m 1p 1p 'tswcurrent' 'tperiodo' 1)
SYMATTR InstName V10
SYMBOL voltage 824 88 R0
SYMATTR Value PULSE(0 'currentsweep' 0 1p 1p 'tswcurrent' 'tperiodo' 1)
SYMATTR InstName V11