* SPICE netlist
M1 N001 B N009 N005 PMOS
M2 N001 N007 N009 N004 PMOS
M3 N009 B N013 0 NMOS
M4 N013 N007 0 N016 NMOS
M5 N018 A N027 N024 PMOS
M6 N018 N025 N027 N023 PMOS
M7 N027 A N032 0 NMOS
M8 N032 N025 0 N034 NMOS
M9 N002 A N007 N006 PMOS
M10 N007 A 0 N012 NMOS
M11 N022 B N025 N026 PMOS
M12 N025 B 0 N031 NMOS
M13 N020 N027 N021 N028 PMOS
M14 N021 N027 0 N033 NMOS
M15 N003 N009 N010 N008 PMOS
M16 N010 N009 0 N014 NMOS
M17 N011 N010 N017 N015 PMOS
M18 N017 N021 XOR N019 PMOS
M19 XOR N021 0 N030 NMOS
M20 XOR N010 0 N029 NMOS
V1 A 0 PULSE(0 1 0 500p 500p 10n 20n)
V2 B 0 PULSE(0 1 0 500p 500p 30n 40n)
V7 N011 0 1
V8 N003 0 1
V9 N001 0 1
V10 N002 0 1
V11 N022 0 1
V12 N020 0 1
V13 N018 0 1
.tran 100n

* LTspice schematic (.asc)
Version 4.1
SHEET 1 2000 1264
WIRE -24 -632 -168 -632
WIRE -24 -568 -24 -632
WIRE -744 -520 -888 -520
WIRE -168 -488 -168 -632
WIRE -168 -488 -296 -488
WIRE -56 -488 -168 -488
WIRE -888 -472 -888 -520
WIRE 520 -472 360 -472
WIRE -296 -424 -296 -488
WIRE -56 -424 -56 -488
WIRE -744 -408 -744 -520
WIRE 520 -392 520 -472
WIRE -296 -376 -296 -408
WIRE -56 -376 -56 -408
WIRE 360 -376 360 -472
WIRE -744 -360 -744 -392
WIRE -424 -344 -568 -344
WIRE -344 -344 -424 -344
WIRE -792 -328 -824 -328
WIRE 360 -328 360 -360
WIRE -104 -312 -104 -344
WIRE -104 -312 -280 -312
WIRE 312 -296 280 -296
WIRE -296 -280 -296 -328
WIRE -184 -280 -296 -280
WIRE -56 -280 -56 -328
WIRE -56 -280 -184 -280
WIRE -888 -264 -952 -264
WIRE -824 -264 -824 -328
WIRE -824 -264 -888 -264
WIRE -744 -264 -744 -312
WIRE -568 -264 -568 -344
WIRE -568 -264 -744 -264
WIRE -184 -264 -184 -280
WIRE 152 -264 -184 -264
WIRE -744 -248 -744 -264
WIRE -184 -248 -184 -264
WIRE 360 -248 360 -280
WIRE 504 -248 360 -248
WIRE -280 -232 -280 -312
WIRE -280 -232 -600 -232
WIRE -184 -232 -184 -248
WIRE 152 -216 152 -264
WIRE 280 -216 280 -296
WIRE 280 -216 152 -216
WIRE 360 -216 360 -248
WIRE 888 -216 712 -216
WIRE -88 -200 -184 -200
WIRE -952 -184 -952 -264
WIRE -824 -168 -824 -264
WIRE -792 -168 -824 -168
WIRE -744 -168 -744 -200
WIRE -280 -168 -280 -232
WIRE -232 -168 -280 -168
WIRE -184 -152 -184 -168
WIRE 280 -136 280 -216
WIRE 312 -136 280 -136
WIRE 360 -136 360 -168
WIRE 712 -136 712 -216
WIRE 888 -136 888 -216
WIRE -184 -104 -184 -152
WIRE 712 -88 712 -120
WIRE 504 -56 504 -248
WIRE 536 -56 504 -56
WIRE 664 -56 536 -56
WIRE -424 -24 -424 -344
WIRE -232 -24 -424 -24
WIRE -184 -24 -184 -56
WIRE -184 8 -184 -8
WIRE -88 8 -88 -200
WIRE -88 8 -184 8
WIRE 712 8 712 -40
WIRE -232 24 -424 24
WIRE -184 40 -184 8
WIRE -600 56 -600 -232
WIRE -600 56 -856 56
WIRE 712 56 712 24
WIRE -232 72 -232 24
WIRE -232 72 -312 72
WIRE -72 72 -232 72
WIRE 280 88 136 88
WIRE 600 88 440 88
WIRE 664 88 600 88
WIRE -888 120 -888 -264
WIRE -472 120 -888 120
WIRE -312 120 -312 72
WIRE -72 120 -72 72
WIRE 600 120 600 88
WIRE 696 120 600 120
WIRE -632 136 -760 136
WIRE 712 136 712 104
WIRE 1000 136 712 136
WIRE -760 168 -760 136
WIRE -632 168 -632 136
WIRE -312 168 -312 136
WIRE -72 168 -72 136
WIRE 712 168 712 136
WIRE 712 168 632 168
WIRE 808 168 712 168
WIRE 136 184 136 88
WIRE -360 200 -520 200
WIRE -760 216 -760 184
WIRE 632 216 632 168
WIRE 808 216 808 168
WIRE -120 232 -120 200
WIRE -120 232 -296 232
WIRE 280 232 280 88
WIRE -808 248 -824 248
WIRE -312 264 -312 216
WIRE -200 264 -312 264
WIRE -72 264 -72 216
WIRE -72 264 -200 264
WIRE -200 280 -200 264
WIRE 72 280 -200 280
WIRE 280 280 280 248
WIRE -856 296 -856 56
WIRE -856 296 -1000 296
WIRE -824 296 -824 248
WIRE -824 296 -856 296
WIRE -760 296 -760 264
WIRE -520 296 -520 200
WIRE -520 296 -760 296
WIRE -472 296 -472 120
WIRE -296 296 -296 232
WIRE -296 296 -472 296
WIRE -200 296 -200 280
WIRE 536 296 536 -56
WIRE 584 296 536 296
WIRE 632 296 632 264
WIRE 696 296 696 120
WIRE 760 296 696 296
WIRE 808 296 808 264
WIRE 232 312 200 312
WIRE -760 328 -760 296
WIRE -88 344 -200 344
WIRE -1000 360 -1000 296
WIRE 280 360 280 328
WIRE 440 360 440 88
WIRE 440 360 280 360
WIRE 632 360 632 312
WIRE 712 360 632 360
WIRE 808 360 808 312
WIRE 808 360 712 360
WIRE -296 376 -296 296
WIRE -248 376 -296 376
WIRE 72 376 72 280
WIRE 200 376 200 312
WIRE 200 376 72 376
WIRE 280 392 280 360
WIRE -824 408 -824 296
WIRE -808 408 -824 408
WIRE -760 408 -760 376
WIRE 712 424 712 360
WIRE -200 440 -200 392
WIRE 200 472 200 376
WIRE 232 472 200 472
WIRE 280 472 280 440
WIRE -520 520 -520 296
WIRE -248 520 -520 520
WIRE -200 520 -200 488
WIRE -200 552 -200 536
WIRE -88 552 -88 344
WIRE -88 552 -200 552
WIRE -200 632 -200 552
FLAG -184 40 0
FLAG -200 632 0
FLAG -760 424 0
FLAG -744 -152 0
FLAG 280 488 0
FLAG 360 -120 0
FLAG 712 424 0
FLAG -952 -104 0
FLAG -1000 440 0
FLAG -952 -264 A
IOPIN -608 48 In
FLAG -1000 296 B
IOPIN -656 608 In
FLAG 888 -56 0
FLAG 520 -312 0
FLAG -24 -488 0
FLAG -888 -392 0
FLAG -632 248 0
FLAG 136 264 0
FLAG -424 104 0
FLAG 1000 136 XOR
IOPIN 1344 448 Out
SYMBOL pmos4 -104 -424 R0
SYMATTR InstName M1
SYMBOL pmos4 -344 -424 R0
SYMATTR InstName M2
SYMBOL nmos4 -232 -248 R0
SYMATTR InstName M3
SYMBOL nmos4 -232 -104 R0
SYMATTR InstName M4
SYMBOL pmos4 -120 120 R0
SYMATTR InstName M5
SYMBOL pmos4 -360 120 R0
SYMATTR InstName M6
SYMBOL nmos4 -248 296 R0
SYMATTR InstName M7
SYMBOL nmos4 -248 440 R0
SYMATTR InstName M8
SYMBOL pmos4 -792 -408 R0
SYMATTR InstName M9
SYMBOL nmos4 -792 -248 R0
SYMATTR InstName M10
SYMBOL pmos4 -808 168 R0
SYMATTR InstName M11
SYMBOL nmos4 -808 328 R0
SYMATTR InstName M12
SYMBOL pmos4 232 232 R0
SYMATTR InstName M13
SYMBOL nmos4 232 392 R0
SYMATTR InstName M14
SYMBOL pmos4 312 -376 R0
SYMATTR InstName M15
SYMBOL nmos4 312 -216 R0
SYMATTR InstName M16
SYMBOL pmos4 664 -136 R0
SYMATTR InstName M17
SYMBOL pmos4 664 8 R0
SYMATTR InstName M18
SYMBOL nmos4 760 216 R0
SYMATTR InstName M19
SYMBOL nmos4 584 216 R0
SYMATTR InstName M20
SYMBOL voltage -952 -200 R0
SYMATTR Value PULSE(0 1 0 500p 500p 10n 20n)
SYMATTR InstName V1
SYMBOL voltage -1000 344 R0
SYMATTR Value PULSE(0 1 0 500p 500p 30n 40n)
SYMATTR InstName V2
SYMBOL voltage 888 -152 R0
SYMATTR InstName V7
SYMATTR Value 1
SYMBOL voltage 520 -408 R0
SYMATTR InstName V8
SYMATTR Value 1
SYMBOL voltage -24 -584 R0
SYMATTR InstName V9
SYMATTR Value 1
SYMBOL voltage -888 -488 R0
SYMATTR InstName V10
SYMATTR Value 1
SYMBOL voltage -632 152 R0
SYMATTR InstName V11
SYMATTR Value 1
SYMBOL voltage 136 168 R0
SYMATTR InstName V12
SYMATTR Value 1
SYMBOL voltage -424 8 R0
SYMATTR InstName V13
SYMATTR Value 1