* SPICE netlist
V1 Vdd 0 5
V2 Vreset 0 PULSE(0 5 0 1p 1p 'durpulsos' 'tperiodo' 4)
M1 N001 Vreset VPD 0 NMOS l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
G1 VPD 0 Vsweep 0 1
V11 Vsweep 0 PULSE(0 'currentsweep' 200n 1p 1p 'tswcurrent' 'tperiodo' 2)
M2 N003 VPD N004 0 NMOS l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
M3 N004 Access N005 0 NMOS l='Lmin' w='W' ad='W*Ld' as='W*Ld' pd='2*W+2*Ld' ps='2*W+2*Ld' m=1
D1 N007 VPD photodiode
M4 N005 Vbias P001 0 NMOS l='Lbias' w='Wbias' ad='Wbias*Ld' as='Wbias*Ld' pd='2*Wbias+2*Ld' ps='2*Wbias+2*Ld' m=1
V4 Vbias 0 1.5
C1 N005 0 2p
V3 Access 0 PULSE(0 5 'taccess' 1p 1p 'durpulsos' 'tperiodo' 4)
M5 Vout N005 N006 Vdd PMOS l='Lmin' w='Wbuf' ad='Ld*Wbuf' as='Ld*Wbuf' pd='2*Ld+2*Wbuf' ps='2*Ld+2*Wbuf' m=1
R1 N002 Vout 80k
V5 Vdd N001 0
V6 N007 0 0
V7 Vdd N003 0
V8 P001 0 0
V9 N006 0 0
V10 Vdd N002 0
.param tperiodo = 20u
.param Lmin = 0.6u, W = 3u, Ld=1.5u
.param tswcurrent = 'tperiodo'
.param currentsweep=300p
.param durpulsos = 600n
.tran 60u
.param Lbias = 20.1u, Wbias = 5.1u
.param taccess = 18u
.param Wbuf=40u
.include C5_models.txt

* LTspice schematic (.asc)
Version 4
SHEET 1 1040 992
WIRE -424 -464 -424 -496
WIRE -424 -352 -424 -384
WIRE 408 -352 408 -368
WIRE -136 -304 -136 -320
WIRE 408 -256 408 -272
WIRE -136 -208 -136 -224
WIRE -424 -128 -424 -256
WIRE -184 -128 -424 -128
WIRE 408 -112 408 -176
WIRE 520 -112 408 -112
WIRE -424 -80 -424 -128
WIRE -248 -80 -424 -80
WIRE -136 -80 -136 -112
WIRE -40 -80 -136 -80
WIRE 120 -80 56 -80
WIRE -424 -48 -424 -80
WIRE -248 -48 -248 -80
WIRE 120 -32 120 -80
WIRE 360 -32 120 -32
WIRE 40 -16 40 -32
WIRE 120 0 120 -32
WIRE 248 0 120 0
WIRE 248 16 248 0
WIRE 408 16 408 -16
WIRE -424 32 -424 16
WIRE -248 48 -248 32
WIRE -200 48 -200 16
WIRE -184 48 -200 48
WIRE 248 96 248 80
WIRE -424 128 -424 112
WIRE 408 128 408 96
WIRE -424 256 -424 240
WIRE -328 256 -328 240
WIRE 280 272 280 256
WIRE 280 368 280 352
WIRE -328 400 -312 384
WIRE -328 496 -328 480
FLAG -424 336 0
FLAG -328 336 0
FLAG -424 240 Vdd
FLAG -328 240 Vreset
FLAG -424 128 0
FLAG -248 48 0
FLAG -424 -496 Vdd
FLAG -424 -304 0
FLAG -200 -32 0
FLAG 280 368 0
FLAG 280 256 Vsweep
FLAG -184 48 Vsweep
FLAG -472 -272 Vreset
FLAG 8 -80 0
FLAG -136 -320 Vdd
FLAG -136 -160 0
FLAG 120 176 0
FLAG 120 48 0
FLAG -520 336 0
FLAG -520 256 Vbias
FLAG 72 80 Vbias
FLAG 248 96 0
FLAG -328 496 0
FLAG -312 384 Access
FLAG 40 -16 Access
FLAG 408 128 0
FLAG 408 -368 Vdd
FLAG 520 -112 Vout
FLAG 408 -64 Vdd
FLAG -424 -128 VPD
SYMBOL voltage -424 240 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage -328 240 R0
SYMATTR Value PULSE(0 5 0 1p 1p 'durpulsos' 'tperiodo' 4)
SYMATTR InstName V2
SYMBOL nmos4 -472 -352 R0
SYMATTR InstName M1
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 g -248 48 R180
SYMATTR InstName G1
SYMATTR Value 1
SYMBOL voltage 280 256 R0
SYMATTR Value PULSE(0 'currentsweep' 200n 1p 1p 'tswcurrent' 'tperiodo' 2)
SYMATTR InstName V11
SYMBOL nmos4 -184 -208 R0
SYMATTR InstName M2
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 -40 -32 R270
SYMATTR InstName M3
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 -408 16 R180
SYMATTR InstName D1
SYMATTR Value photodiode
SYMBOL nmos4 72 0 R0
SYMATTR InstName M4
SYMATTR Value2 l='Lbias' w='Wbias' ad='Wbias*Ld' as='Wbias*Ld' pd='2*Wbias+2*Ld' ps='2*Wbias+2*Ld' m=1
SYMBOL voltage -520 240 R0
SYMATTR InstName V4
SYMATTR Value 1.5
SYMBOL cap 232 16 R0
SYMATTR InstName C1
SYMATTR Value 2p
SYMBOL voltage -328 384 R0
SYMATTR Value PULSE(0 5 'taccess' 1p 1p 'durpulsos' 'tperiodo' 4)
SYMATTR InstName V3
SYMBOL pmos4 360 -112 R0
SYMATTR InstName M5
SYMATTR Value2 l='Lmin' w='Wbuf' ad='Ld*Wbuf' as='Ld*Wbuf' pd='2*Ld+2*Wbuf' ps='2*Ld+2*Wbuf' m=1
SYMBOL res 392 -272 R0
SYMATTR InstName R1
SYMATTR Value 80k
SYMBOL voltage -424 -480 R0
SYMATTR InstName V5
SYMATTR Value 0
SYMBOL voltage -424 16 R0
SYMATTR InstName V6
SYMATTR Value 0
SYMBOL voltage -136 -320 R0
SYMATTR InstName V7
SYMATTR Value 0
SYMBOL voltage 120 80 R0
SYMATTR InstName V8
SYMATTR Value 0
SYMBOL voltage 408 0 R0
SYMATTR InstName V9
SYMATTR Value 0
SYMBOL voltage 408 -368 R0
SYMATTR InstName V10
SYMATTR Value 0