* SPICE netlist
V1 Vdd 0 5
V2 A 0 PULSE(0 5 1n 0.1n 0.1n 5n 10n)
V3 B 0 0
M7 Sum notA N003 N003 NMOS
M8 N003 A 0 0 NMOS
M9 Sum A N005 N005 NMOS
M10 N005 notA 0 0 NMOS
M11 Sum B N004 N004 NMOS
M12 N004 N002 0 0 NMOS
M13 notA A Vdd Vdd PMOS
M14 notA A 0 0 NMOS
M15 notB B Vdd Vdd PMOS
M16 notB B 0 0 NMOS
V4 Cin 0 5
M17 notCin Cin Vdd Vdd PMOS
M18 notCin Cin 0 0 NMOS
M21 N003 N006 N004 N004 NMOS
M22 N004 Cin N005 N005 NMOS
V_pnmos1 N001 Sum 0
M1 N001 0 Vdd Vdd PMOS
.tran 70n

* LTspice schematic (.asc)
Version 4
SHEET 1 2336 1584
WIRE 144 -792 112 -792
WIRE 176 -792 144 -792
WIRE 176 -760 176 -792
WIRE 128 -744 96 -744
WIRE 96 -728 96 -744
WIRE 176 -616 176 -664
WIRE -1008 -584 -1072 -584
WIRE -992 -584 -1008 -584
WIRE -1072 -536 -1072 -584
WIRE -1072 -424 -1072 -456
WIRE -1088 -360 -1136 -360
WIRE -1072 -360 -1088 -360
WIRE -1136 -312 -1136 -360
WIRE -448 -312 -464 -312
WIRE -416 -312 -448 -312
WIRE 944 -296 912 -296
WIRE 960 -296 944 -296
WIRE -416 -248 -416 -312
WIRE -464 -232 -560 -232
WIRE 912 -232 912 -296
WIRE 1056 -216 960 -216
WIRE -1136 -184 -1136 -232
WIRE -400 -152 -416 -152
WIRE 912 -136 896 -136
WIRE -1104 -104 -1152 -104
WIRE -1072 -104 -1104 -104
WIRE -1152 -72 -1152 -104
WIRE -592 -72 -608 -72
WIRE -560 -72 -560 -232
WIRE -560 -72 -592 -72
WIRE 176 -72 176 -536
WIRE 336 -72 176 -72
WIRE -400 -40 -400 -152
WIRE -288 -40 -400 -40
WIRE 1056 -40 1056 -216
WIRE 1104 -40 1056 -40
WIRE 1168 -40 1104 -40
WIRE 768 -24 256 -24
WIRE 896 -24 896 -136
WIRE 896 -24 816 -24
WIRE -400 24 -400 -40
WIRE -1152 40 -1152 8
WIRE 896 40 896 -24
WIRE 176 56 176 -72
WIRE 176 56 -176 56
WIRE 576 56 176 56
WIRE -560 104 -560 -72
WIRE -448 104 -560 104
WIRE 1056 120 1056 -40
WIRE 1056 120 944 120
WIRE -176 136 -176 56
WIRE 576 136 576 56
WIRE 176 152 176 56
WIRE -400 168 -400 120
WIRE 176 168 176 152
WIRE 896 184 896 136
WIRE -288 216 -288 -40
WIRE -224 216 -288 216
WIRE -208 216 -224 216
WIRE -592 280 -608 280
WIRE -560 280 -592 280
WIRE -176 328 -176 232
WIRE -64 328 -176 328
WIRE 176 328 176 248
WIRE 176 328 32 328
WIRE 336 328 176 328
WIRE 576 328 576 232
WIRE 576 328 432 328
WIRE -560 344 -560 280
WIRE -608 360 -704 360
WIRE -1072 440 -1168 440
WIRE -544 440 -560 440
WIRE -176 440 -176 328
WIRE 176 440 176 328
WIRE 576 440 576 328
WIRE -1168 504 -1168 440
WIRE 256 520 256 -24
WIRE 256 520 224 520
WIRE -704 536 -704 360
WIRE -544 552 -544 440
WIRE -448 552 -544 552
WIRE 16 552 16 376
WIRE 16 552 -432 552
WIRE -176 600 -176 536
WIRE 176 600 176 536
WIRE 176 600 -176 600
WIRE 576 600 576 536
WIRE 576 600 176 600
WIRE -544 616 -544 552
WIRE 176 680 176 600
WIRE -704 696 -704 536
WIRE -592 696 -704 696
WIRE -544 760 -544 712
WIRE -288 792 -288 216
WIRE 624 792 624 520
WIRE 624 792 -288 792
FLAG -1072 -424 0
FLAG -1008 -584 Vdd
FLAG -1136 -184 0
FLAG -1152 40 0
FLAG -1088 -360 A
FLAG -1104 -104 B
FLAG -400 168 0
FLAG -448 -312 Vdd
FLAG -592 -72 A
FLAG -288 -40 notA
FLAG 896 184 0
FLAG 944 -296 Vdd
FLAG 1104 -40 B
FLAG 816 -24 notB
FLAG -224 520 A
FLAG 624 216 A
FLAG 224 232 B
FLAG -1168 584 0
FLAG -1072 440 Cin
FLAG -544 760 0
FLAG -592 280 Vdd
FLAG -704 536 Cin
FLAG -448 552 notCin
FLAG 336 -72 Sum
FLAG 416 376 Cin
FLAG 176 680 0
FLAG 144 -792 Vdd
FLAG 96 -728 0
SYMBOL voltage -1072 -552 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage -1136 -328 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 5 1n 0.1n 0.1n 5n 10n)
SYMBOL voltage -1152 -88 R0
SYMATTR InstName V3
SYMATTR Value 0
SYMBOL nmos -224 136 R0
SYMATTR InstName M7
SYMBOL nmos -224 440 R0
SYMATTR InstName M8
SYMBOL nmos 624 136 M0
SYMATTR InstName M9
SYMBOL nmos 624 440 M0
SYMATTR InstName M10
SYMBOL nmos 224 152 M0
SYMATTR InstName M11
SYMBOL nmos 224 440 M0
SYMATTR InstName M12
SYMBOL pmos -464 -152 M180
SYMATTR InstName M13
SYMBOL nmos -448 24 R0
SYMATTR InstName M14
SYMBOL pmos 960 -136 R180
SYMATTR InstName M15
SYMBOL nmos 944 40 M0
SYMATTR InstName M16
SYMBOL voltage -1168 488 R0
SYMATTR InstName V4
SYMATTR Value 5
SYMBOL pmos -608 440 M180
SYMATTR InstName M17
SYMBOL nmos -592 616 R0
SYMATTR InstName M18
SYMBOL nmos -64 376 R270
SYMATTR InstName M21
SYMBOL nmos 336 376 R270
SYMATTR InstName M22
SYMBOL voltage 176 -632 R0
SYMATTR InstName V_pnmos1
SYMATTR Value 0
SYMBOL pmos 128 -664 M180
SYMATTR InstName M1