* SPICE netlist
M1 N002 B vdd vdd PMOS l=0.18u w=2u
M2 N001 A vdd vdd PMOS l=0.18u w=2u
M3 vout B_bar N001 vdd PMOS l=0.18u w=2u
M4 vout A_bar N002 vdd PMOS l=0.18u w=2u
M5 vout A N003 0 NMOS l=0.18u w=1u
M6 N003 B 0 0 NMOS l=0.18u w=1u
M7 vout B_bar N003 0 NMOS l=0.18u w=1u
M8 N003 A_bar 0 0 NMOS l=0.18u w=1u
vdd vdd 0 1.8
V1 A 0 PULSE(0 1.8 100p 10p 10p 10u 20u)
V2 B 0 PULSE(0 1.8 100p 10p 10p 10u 50u)
M9 A_bar A 0 0 NMOS l=0.18u w=1u
M10 A_bar A vdd vdd PMOS l=0.18u w=2u
M11 B_bar B 0 0 NMOS l=0.18u w=1u
M12 B_bar B vdd vdd PMOS l=0.18u w=2u
.include tsmc180.txt
.op
.tran 50u
.meas time_12 find when V(A) = 0.9V rise = 1
.meas time_22 find when V(vout) = 0.9V fall = 1
.meas TPHL time_22 - time_12
.meas time_32 find when V(A) = 0.9V fall = 2
.meas time_42 find when V(vout) = 0.9V rise = 2
.meas TPLH time_42 - time_32
.meas dealy param (TPHL + TPLH)/2

* LTspice schematic (.asc)
Version 4
SHEET 1 1744 912
WIRE 712 -424 712 -456
WIRE 760 -424 712 -424
WIRE 712 -408 712 -424
WIRE 72 -392 72 -408
WIRE 72 -392 -24 -392
WIRE 184 -392 72 -392
WIRE 664 -392 600 -392
WIRE -24 -360 -24 -392
WIRE 184 -360 184 -392
WIRE 760 -360 760 -424
WIRE 760 -360 712 -360
WIRE -72 -344 -152 -344
WIRE 328 -344 232 -344
WIRE 72 -312 72 -392
WIRE 72 -312 -24 -312
WIRE 184 -312 72 -312
WIRE 600 -280 600 -392
WIRE 600 -280 536 -280
WIRE 712 -280 712 -312
WIRE 840 -280 712 -280
WIRE 712 -248 712 -280
WIRE -24 -200 -24 -264
WIRE 184 -200 184 -264
WIRE 760 -200 712 -200
WIRE -72 -184 -152 -184
WIRE 328 -184 232 -184
WIRE 600 -168 600 -280
WIRE 664 -168 600 -168
WIRE 72 -152 72 -312
WIRE 72 -152 -24 -152
WIRE 184 -152 72 -152
WIRE 712 -120 712 -152
WIRE 760 -120 760 -200
WIRE 760 -120 712 -120
WIRE 712 -72 712 -120
WIRE -24 -40 -24 -104
WIRE 72 -40 -24 -40
WIRE 184 -40 184 -104
WIRE 184 -40 72 -40
WIRE 72 8 72 -40
WIRE 488 8 72 8
WIRE 72 40 72 8
WIRE 72 40 -24 40
WIRE 184 40 72 40
WIRE -24 88 -24 40
WIRE 184 88 184 40
WIRE 744 104 744 72
WIRE 792 104 744 104
WIRE 744 120 744 104
WIRE 72 136 -24 136
WIRE 184 136 72 136
WIRE 696 136 632 136
WIRE -872 168 -872 104
WIRE -632 168 -632 104
WIRE -72 168 -152 168
WIRE 328 168 232 168
WIRE 792 168 792 104
WIRE 792 168 744 168
WIRE -440 184 -440 120
WIRE 72 184 72 136
WIRE -24 232 -24 184
WIRE 184 232 184 184
WIRE 184 232 -24 232
WIRE 632 248 632 136
WIRE 632 248 568 248
WIRE 744 248 744 216
WIRE 872 248 744 248
WIRE -24 280 -24 232
WIRE 184 280 184 232
WIRE 744 280 744 248
WIRE -872 328 -872 248
WIRE -632 328 -632 248
WIRE -440 328 -440 264
WIRE 72 328 -24 328
WIRE 184 328 72 328
WIRE 792 328 744 328
WIRE -72 360 -152 360
WIRE 328 360 232 360
WIRE 632 360 632 248
WIRE 696 360 632 360
WIRE 744 408 744 376
WIRE 792 408 792 328
WIRE 792 408 744 408
WIRE -24 424 -24 376
WIRE 72 424 72 328
WIRE 72 424 -24 424
WIRE 184 424 184 376
WIRE 184 424 72 424
WIRE 72 456 72 424
WIRE 744 456 744 408
FLAG 744 72 vdd
IOPIN 928 160 In
FLAG -152 -344 A
IOPIN 32 -256 In
FLAG 328 -184 A_bar
IOPIN 512 -96 In
FLAG 328 -344 B
IOPIN 512 -256 In
FLAG -152 -184 B_bar
IOPIN 32 -96 In
FLAG 72 456 0
FLAG 488 8 vout
IOPIN 672 96 In
FLAG -152 168 A
IOPIN 32 256 In
FLAG 328 168 B_bar
IOPIN 512 256 In
FLAG 72 184 0
FLAG -152 360 B
IOPIN 32 448 In
FLAG 328 360 A_bar
IOPIN 512 448 In
FLAG -440 328 0
FLAG -440 120 vdd
IOPIN -256 208 In
FLAG -632 328 0
FLAG -872 328 0
FLAG -872 104 A
IOPIN -688 192 In
FLAG -632 104 B
IOPIN -448 192 In
FLAG 744 456 0
FLAG 872 248 A_bar
IOPIN 1056 336 In
FLAG 568 248 A
IOPIN 752 336 In
FLAG 712 -456 vdd
IOPIN 896 -368 In
FLAG 712 -72 0
FLAG 536 -280 B
IOPIN 720 -192 In
FLAG 840 -280 B_bar
IOPIN 1024 -192 In
FLAG 72 -408 vdd
IOPIN 256 -320 In
SYMBOL pmos4 232 -264 R180
SYMATTR InstName M1
SYMATTR Value2 l=0.18u w=2u
SYMBOL pmos4 -72 -264 M180
SYMATTR InstName M2
SYMATTR Value2 l=0.18u w=2u
SYMBOL pmos4 -72 -104 M180
SYMATTR InstName M3
SYMATTR Value2 l=0.18u w=2u
SYMBOL pmos4 232 -104 R180
SYMATTR InstName M4
SYMATTR Value2 l=0.18u w=2u
SYMBOL nmos4 -72 88 R0
SYMATTR InstName M5
SYMATTR Value2 l=0.18u w=1u
SYMBOL nmos4 -72 280 R0
SYMATTR InstName M6
SYMATTR Value2 l=0.18u w=1u
SYMBOL nmos4 232 88 M0
SYMATTR InstName M7
SYMATTR Value2 l=0.18u w=1u
SYMBOL nmos4 232 280 M0
SYMATTR InstName M8
SYMATTR Value2 l=0.18u w=1u
SYMBOL voltage -440 168 R0
SYMATTR InstName vdd
SYMATTR Value 1.8
SYMBOL voltage -872 152 R0
SYMATTR InstName V1
SYMATTR Value PULSE(0 1.8 100p 10p 10p 10u 20u)
SYMBOL voltage -632 152 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 1.8 100p 10p 10p 10u 50u)
SYMBOL nmos4 696 280 R0
SYMATTR InstName M9
SYMATTR Value2 l=0.18u w=1u
SYMBOL pmos4 696 216 M180
SYMATTR InstName M10
SYMATTR Value2 l=0.18u w=2u
SYMBOL nmos4 664 -248 R0
SYMATTR InstName M11
SYMATTR Value2 l=0.18u w=1u
SYMBOL pmos4 664 -312 M180
SYMATTR InstName M12
SYMATTR Value2 l=0.18u w=2u