* SPICE netlist
M1 Vdd 0 Abar Vdd PMOS l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M2 Abar A 0 0 NMOS l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
V1 A 0 PULSE(0 5 0 1n 1n 10n 20n)
V2 B 0 PULSE(0 5 0 1n 1n 20n 40n)
M3 Vdd 0 Bbar Vdd PMOS l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M4 Bbar B 0 0 NMOS l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M6 Vdd 0 Y3 Vdd PMOS l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M7 Y3 Abar 0 0 NMOS l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M8 Y3 Bbar 0 0 NMOS l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
V3 Vdd 0 5
M10 Vdd 0 Y2 Vdd PMOS l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M11 Y2 Abar 0 0 NMOS l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M12 Y2 B 0 0 NMOS l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M14 Vdd 0 Y1 Vdd PMOS l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M15 Y1 A 0 0 NMOS l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M16 Y1 Bbar 0 0 NMOS l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M18 Vdd 0 Y0 Vdd PMOS l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M19 Y0 A 0 0 NMOS l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
M20 Y0 B 0 0 NMOS l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
;tran 200n
.param Lmin= 0.5u
.param x1 = '3*Lmin'
.param AR1 = 10
+VTO = -0.7 GAMMA= 0
+NSUB = 5e+14 LD = 0.09e-6
+LAMBDA= 0.2 KP = 30e-6
+CJ= 0.94e-3 CJSW = 0.32e-11 MJ =0.5
+MJSW=0.3 CGDO = 0.3e-9 JS= 0.5e-8)
+VTO = 0.7 GAMMA = 0
+NSUB = 9e+14 LD = 0.08e-6
+LAMBDA = 0.1 KP = 600e-6
+CJ = 0.56e-3 CJSW = 0.35e-11 MJ = 0.45
+MJSW = 0.2 CGDO = 0.4e-9 JS = 1.0e-8)

* LTspice schematic (.asc)
Version 4
SHEET 1 2304 1120
WIRE -48 -528 -48 -560
WIRE 144 -528 -48 -528
WIRE 832 -512 832 -544
WIRE 1024 -512 832 -512
WIRE -48 -496 -48 -528
WIRE 832 -480 832 -512
WIRE 144 -448 144 -528
WIRE 144 -448 -48 -448
WIRE 1024 -432 1024 -512
WIRE 1024 -432 832 -432
WIRE -96 -416 -128 -416
WIRE 800 -400 784 -400
WIRE -416 -384 -416 -400
WIRE -384 -384 -416 -384
WIRE -416 -368 -416 -384
WIRE -48 -368 -48 -400
WIRE 256 -368 -48 -368
WIRE 832 -352 832 -384
WIRE 1136 -352 832 -352
WIRE -384 -320 -384 -384
WIRE -384 -320 -416 -320
WIRE -48 -320 -48 -368
WIRE 208 -320 -48 -320
WIRE 832 -304 832 -352
WIRE 1088 -304 832 -304
WIRE -464 -288 -480 -288
WIRE -48 -288 -48 -320
WIRE 208 -288 208 -320
WIRE 832 -272 832 -304
WIRE 1088 -272 1088 -304
WIRE -416 -256 -416 -272
WIRE -352 -256 -416 -256
WIRE 16 -240 -48 -240
WIRE 272 -240 208 -240
WIRE -480 -224 -496 -224
WIRE -416 -224 -416 -256
WIRE 896 -224 832 -224
WIRE 1152 -224 1088 -224
WIRE -384 -176 -416 -176
WIRE -480 -144 -480 -224
WIRE -464 -144 -480 -144
WIRE -48 -144 -48 -192
WIRE 208 -144 208 -192
WIRE 208 -144 -48 -144
WIRE -384 -128 -384 -176
WIRE -384 -128 -416 -128
WIRE 832 -128 832 -176
WIRE 1088 -128 1088 -176
WIRE 1088 -128 832 -128
WIRE -416 -112 -416 -128
WIRE 896 -112 896 -224
WIRE 272 -96 272 -240
WIRE 16 -80 16 -240
WIRE 1152 -80 1152 -224
WIRE 832 -64 832 -128
WIRE -48 -32 -48 -144
WIRE -432 16 -432 0
WIRE -400 16 -432 16
WIRE 592 16 592 -48
WIRE 784 16 592 16
WIRE -432 32 -432 16
WIRE 592 32 592 16
WIRE -128 64 -128 48
WIRE 64 64 -128 64
WIRE -400 80 -400 16
WIRE -400 80 -432 80
WIRE 784 80 784 16
WIRE 784 80 592 80
WIRE -128 96 -128 64
WIRE -480 112 -496 112
WIRE 544 112 528 112
WIRE -432 144 -432 128
WIRE -368 144 -432 144
WIRE 64 144 64 64
WIRE 64 144 -128 144
WIRE 592 160 592 128
WIRE 896 160 592 160
WIRE -496 176 -512 176
WIRE -432 176 -432 144
WIRE -176 176 -192 176
WIRE 592 208 592 160
WIRE 848 208 592 208
WIRE -400 224 -432 224
WIRE -128 224 -128 192
WIRE 176 224 -128 224
WIRE 592 240 592 208
WIRE 848 240 848 208
WIRE -496 256 -496 176
WIRE -480 256 -496 256
WIRE -400 272 -400 224
WIRE -400 272 -432 272
WIRE -128 272 -128 224
WIRE 128 272 -128 272
WIRE -432 288 -432 272
WIRE 656 288 592 288
WIRE 912 288 848 288
WIRE -128 304 -128 272
WIRE 128 304 128 272
WIRE -64 352 -128 352
WIRE 192 352 128 352
WIRE 592 384 592 336
WIRE 848 384 848 336
WIRE 848 384 592 384
WIRE 912 432 912 288
WIRE -128 448 -128 400
WIRE 128 448 128 400
WIRE 128 448 -128 448
WIRE 656 448 656 288
WIRE 192 496 192 352
WIRE 592 496 592 384
WIRE -64 512 -64 352
WIRE -128 560 -128 448
FLAG -416 -112 0
FLAG -496 -224 A
IOPIN 480 -192 In
FLAG -352 -256 Abar
IOPIN 624 -224 Out
FLAG -416 -400 Vdd
IOPIN 560 -368 In
FLAG -1008 -128 B
IOPIN -32 -96 In
FLAG -1008 -336 A
IOPIN -32 -304 In
FLAG -1008 -256 0
FLAG -1008 -48 0
FLAG -432 288 0
FLAG -512 176 B
IOPIN 464 208 In
FLAG -368 144 Bbar
IOPIN 608 176 Out
FLAG -432 0 Vdd
IOPIN 544 32 In
FLAG -48 -560 Vdd
IOPIN 928 -528 In
FLAG -96 -208 Abar
IOPIN 880 -176 In
FLAG 160 -208 Bbar
IOPIN 1136 -176 In
FLAG 256 -368 Y3
IOPIN 1232 -336 Out
FLAG -1152 -320 Vdd
IOPIN -176 -288 In
FLAG -1152 -240 0
FLAG -48 -32 0
FLAG 16 -80 0
FLAG 272 -96 0
FLAG 832 -544 Vdd
IOPIN 1808 -512 In
FLAG 784 -192 Abar
IOPIN 1760 -160 In
FLAG 1040 -192 B
IOPIN 2016 -160 In
FLAG 1136 -352 Y2
IOPIN 2112 -320 Out
FLAG 832 -64 0
FLAG 896 -112 0
FLAG 1152 -80 0
FLAG -128 48 Vdd
IOPIN 848 80 In
FLAG -176 384 A
IOPIN 800 416 In
FLAG 80 384 Bbar
IOPIN 1056 416 In
FLAG 176 224 Y1
IOPIN 1152 256 Out
FLAG -128 560 0
FLAG -64 512 0
FLAG 192 496 0
FLAG 592 -48 Vdd
IOPIN 1568 -16 In
FLAG 544 320 A
IOPIN 1520 352 In
FLAG 800 320 B
IOPIN 1776 352 In
FLAG 896 160 Y0
IOPIN 1872 192 Out
FLAG 592 496 0
FLAG 656 448 0
FLAG 912 432 0
FLAG -128 -416 0
FLAG -192 176 0
FLAG 528 112 0
FLAG 784 -400 0
FLAG -480 -288 0
FLAG -496 112 0
SYMBOL pmos4 -464 -368 R0
SYMATTR InstName M1
SYMATTR Value2 l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL nmos4 -464 -224 R0
SYMATTR InstName M2
SYMATTR Value2 l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL voltage -1008 -352 R0
SYMATTR InstName V1
SYMATTR Value PULSE(0 5 0 1n 1n 10n 20n)
SYMBOL voltage -1008 -144 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 5 0 1n 1n 20n 40n)
SYMBOL pmos4 -480 32 R0
SYMATTR InstName M3
SYMATTR Value2 l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL nmos4 -480 176 R0
SYMATTR InstName M4
SYMATTR Value2 l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL pmos4 -96 -496 R0
SYMATTR InstName M6
SYMATTR Value2 l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL nmos4 -96 -288 R0
SYMATTR InstName M7
SYMATTR Value2 l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL nmos4 160 -288 R0
SYMATTR InstName M8
SYMATTR Value2 l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL voltage -1152 -336 R0
SYMATTR InstName V3
SYMATTR Value 5
SYMBOL pmos4 784 -480 R0
SYMATTR InstName M10
SYMATTR Value2 l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL nmos4 784 -272 R0
SYMATTR InstName M11
SYMATTR Value2 l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL nmos4 1040 -272 R0
SYMATTR InstName M12
SYMATTR Value2 l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL pmos4 -176 96 R0
SYMATTR InstName M14
SYMATTR Value2 l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL nmos4 -176 304 R0
SYMATTR InstName M15
SYMATTR Value2 l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL nmos4 80 304 R0
SYMATTR InstName M16
SYMATTR Value2 l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL pmos4 544 32 R0
SYMATTR InstName M18
SYMATTR Value2 l={Lmin} w={AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL nmos4 544 240 R0
SYMATTR InstName M19
SYMATTR Value2 l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}
SYMBOL nmos4 800 240 R0
SYMATTR InstName M20
SYMATTR Value2 l={Lmin} w={2*AR1*Lmin} ad={x1*AR1*Lmin} as={x1*AR1*Lmin} pd={2*x1 + 2*AR1*Lmin} ps={2*x1 + 2*AR1*Lmin}