* SPICE netlist
M1 N006 N016 N017 N007 PMOS
M2 N006 N003 N018 N008 PMOS
M3 N017 N022 N009 N019 PMOS
M4 N018 N025 N009 N020 PMOS
M5 N023 N016 N022 N023 PMOS
M6 N022 N016 0 0 NMOS
V1 N023 0 5
V2 N006 0 5
M7 N026 N003 N025 N026 PMOS
M8 N025 N003 0 0 NMOS
V3 N026 0 5
M9 N009 N016 N035 N031 NMOS
M10 N035 N003 0 N037 NMOS
M11 N009 N022 N036 N032 NMOS
M12 N036 N025 0 N038 NMOS
M13 N041 N016 N049 N041 PMOS l=1040nm w=1040nm
M14 N049 N016 N056 0 NMOS l=1040nm w=1040nm
M15 N056 N003 0 0 NMOS l=1040nm w=1040nm
V4 N041 0 3.3
M16 N041 N003 N049 N041 PMOS
M17 N041 N049 N046 N044 PMOS
M18 N046 N049 0 N053 NMOS
M19 N002 N009 N010 N004 PMOS
M20 N002 N001 N011 N005 PMOS
M21 N010 N014 SUM N012 PMOS
M22 N011 N021 SUM N013 PMOS
M23 N015 N009 N014 N015 PMOS
M24 N014 N009 0 0 NMOS
V6 N015 0 5
V7 N002 0 5
M25 N024 N001 N021 N024 PMOS
M26 N021 N001 0 0 NMOS
V8 N024 0 5
M27 SUM N009 N029 N027 NMOS
M28 N029 N001 0 N033 NMOS
M29 SUM N014 N030 N028 NMOS
M30 N030 N021 0 N034 NMOS
M31 N039 N001 N047 N039 PMOS l=1040nm w=1040nm
M32 N047 N001 N055 0 NMOS l=1040nm w=1040nm
M33 N055 N009 0 0 NMOS l=1040nm w=1040nm
V9 N039 0 3.3
M34 N039 N009 N047 N039 PMOS
M35 N039 N047 N045 N043 PMOS
M36 N045 N047 0 N050 NMOS
M37 N040 N045 N048 N042 PMOS
M38 N048 N046 N054 N051 PMOS
M39 N054 N045 0 N058 NMOS
M40 N054 N046 0 N059 NMOS
V10 N040 0 5
M41 N040 N054 Cout N052 PMOS
M42 Cout N054 0 N057 NMOS
VA N016 0 PULSE(0 5 0 5n 5n 15m 20m)
VB N003 0 PULSE(0 5 0 5n 5n 10m 20m)
VCIN N001 0 PULSE(0 5 0 5N 5N 20m 40m)
.tran 180m

* LTspice schematic (.asc)
Version 4
SHEET 1 4752 2496
WIRE 1032 -1248 -2168 -1248
WIRE 504 -1056 392 -1056
WIRE 648 -1056 504 -1056
WIRE -312 -1040 -1928 -1040
WIRE 392 -1008 392 -1040
WIRE 648 -1008 648 -1040
WIRE -840 -912 -952 -912
WIRE -696 -912 -840 -912
WIRE 600 -896 600 -976
WIRE 696 -896 600 -896
WIRE -952 -864 -952 -896
WIRE -696 -864 -696 -896
WIRE 248 -848 -88 -848
WIRE 344 -848 344 -976
WIRE 344 -848 248 -848
WIRE 696 -848 696 -896
WIRE 1000 -848 696 -848
WIRE 1032 -848 1032 -1248
WIRE 1032 -848 1000 -848
WIRE 392 -832 392 -960
WIRE 648 -832 648 -960
WIRE 392 -784 392 -816
WIRE 648 -784 648 -816
WIRE 856 -768 840 -768
WIRE -744 -752 -744 -832
WIRE -648 -752 -744 -752
WIRE 344 -752 344 -768
WIRE 56 -736 40 -736
WIRE 504 -736 392 -736
WIRE 648 -736 504 -736
WIRE 840 -720 840 -768
WIRE 856 -720 840 -720
WIRE -2168 -704 -2168 -1248
WIRE -2168 -704 -2376 -704
WIRE -1576 -704 -2040 -704
WIRE -1448 -704 -1576 -704
WIRE -1096 -704 -1448 -704
WIRE -1000 -704 -1000 -832
WIRE -1000 -704 -1096 -704
WIRE -648 -704 -648 -752
WIRE -344 -704 -648 -704
WIRE -312 -704 -312 -1040
WIRE -312 -704 -344 -704
WIRE -952 -688 -952 -816
WIRE -696 -688 -696 -816
WIRE 56 -688 56 -736
WIRE 56 -688 40 -688
WIRE -1928 -656 -1928 -1040
WIRE -1656 -656 -1928 -656
WIRE -952 -640 -952 -672
WIRE -696 -640 -696 -672
WIRE 600 -640 600 -752
WIRE 808 -640 600 -640
WIRE 856 -640 856 -672
WIRE 856 -640 808 -640
WIRE 904 -640 904 -752
WIRE 1000 -640 1000 -848
WIRE 1000 -640 904 -640
WIRE -488 -624 -504 -624
WIRE -2168 -608 -2168 -704
WIRE -2040 -608 -2040 -704
WIRE -1928 -608 -1928 -656
WIRE -1000 -608 -1000 -624
WIRE 40 -608 40 -640
WIRE 344 -608 344 -752
WIRE 344 -608 40 -608
WIRE 648 -608 344 -608
WIRE 856 -608 856 -640
WIRE -1288 -592 -1304 -592
WIRE -840 -592 -952 -592
WIRE -696 -592 -840 -592
WIRE -88 -592 -88 -848
WIRE -88 -592 -232 -592
WIRE -8 -592 -8 -656
WIRE -8 -592 -88 -592
WIRE 904 -592 904 -640
WIRE -504 -576 -504 -624
WIRE -488 -576 -504 -576
WIRE 40 -576 40 -608
WIRE 856 -560 840 -560
WIRE -1288 -544 -1288 -592
WIRE -1288 -544 -1304 -544
WIRE 56 -528 40 -528
WIRE 840 -512 840 -560
WIRE 856 -512 840 -512
WIRE -744 -496 -744 -608
WIRE -536 -496 -744 -496
WIRE -488 -496 -488 -528
WIRE -488 -496 -536 -496
WIRE -440 -496 -440 -608
WIRE -344 -496 -344 -704
WIRE -344 -496 -440 -496
WIRE -8 -496 -8 -592
WIRE 56 -480 56 -528
WIRE 56 -480 40 -480
WIRE -1448 -464 -1448 -704
WIRE -1352 -464 -1352 -512
WIRE -1352 -464 -1448 -464
WIRE -1304 -464 -1304 -496
WIRE -1000 -464 -1000 -608
WIRE -1000 -464 -1304 -464
WIRE -696 -464 -1000 -464
WIRE -488 -464 -488 -496
WIRE -440 -448 -440 -496
WIRE -1304 -432 -1304 -464
WIRE -488 -416 -504 -416
WIRE -1288 -384 -1304 -384
WIRE 504 -384 504 -736
WIRE 1128 -384 504 -384
WIRE -504 -368 -504 -416
WIRE -488 -368 -504 -368
WIRE -1352 -352 -1352 -464
WIRE -1288 -336 -1288 -384
WIRE -1288 -336 -1304 -336
WIRE 504 -256 504 -384
WIRE 504 -256 376 -256
WIRE 696 -256 504 -256
WIRE -840 -192 -840 -592
WIRE -232 -192 -232 -592
WIRE -232 -192 -840 -192
WIRE -184 -192 -232 -192
WIRE -136 -192 -184 -192
WIRE 248 -176 248 -848
WIRE 328 -176 248 -176
WIRE 376 -176 376 -208
WIRE 648 -176 648 -608
WIRE 696 -176 696 -208
WIRE -840 -112 -840 -192
WIRE -840 -112 -968 -112
WIRE -648 -112 -840 -112
WIRE 376 -80 376 -160
WIRE 696 -80 696 -160
WIRE -1096 -32 -1096 -704
WIRE -1016 -32 -1096 -32
WIRE -968 -32 -968 -64
WIRE -696 -32 -696 -464
WIRE -648 -32 -648 -64
WIRE 376 0 376 -32
WIRE 696 0 696 -32
WIRE 520 16 376 16
WIRE 696 16 520 16
WIRE -968 64 -968 -16
WIRE -648 64 -648 -16
WIRE 328 64 328 0
WIRE 1032 64 1032 -848
WIRE 1032 64 328 64
WIRE 648 112 648 0
WIRE 808 112 808 -640
WIRE 808 112 648 112
WIRE -968 144 -968 112
WIRE -648 144 -648 112
WIRE -824 160 -968 160
WIRE -648 160 -824 160
WIRE -1016 208 -1016 144
WIRE -312 208 -312 -704
WIRE -312 208 -1016 208
WIRE -696 256 -696 144
WIRE -536 256 -536 -496
WIRE -536 256 -696 256
WIRE 1992 384 1864 384
WIRE 568 400 568 368
WIRE -856 416 -856 384
WIRE 568 480 488 480
WIRE 1864 480 1864 464
WIRE 2280 480 1864 480
WIRE -856 496 -936 496
WIRE 488 496 488 480
WIRE 488 496 472 496
WIRE 1864 496 1864 480
WIRE -936 512 -936 496
WIRE -936 512 -952 512
WIRE 472 512 472 496
WIRE 568 512 568 480
WIRE 648 512 568 512
WIRE 664 512 648 512
WIRE 824 512 664 512
WIRE -952 528 -952 512
WIRE -856 528 -856 496
WIRE -776 528 -856 528
WIRE -760 528 -776 528
WIRE -600 528 -760 528
WIRE 1864 544 1864 512
WIRE 488 560 488 496
WIRE 488 560 472 560
WIRE 664 560 664 512
WIRE 664 560 648 560
WIRE 824 560 824 528
WIRE -936 576 -936 512
WIRE -936 576 -952 576
WIRE -760 576 -760 528
WIRE -760 576 -776 576
WIRE -600 576 -600 544
WIRE 1816 576 1800 576
WIRE 424 592 392 592
WIRE -1000 608 -1032 608
WIRE 1736 608 824 608
WIRE -520 624 -600 624
WIRE -488 624 -520 624
WIRE 600 624 600 592
WIRE 600 624 408 624
WIRE -824 640 -824 608
WIRE -824 640 -1016 640
WIRE 472 640 472 608
WIRE 648 640 648 608
WIRE 648 640 472 640
WIRE 776 640 776 592
WIRE 776 640 648 640
WIRE 1736 640 1736 608
WIRE 1800 640 1800 576
WIRE 1800 640 1736 640
WIRE 1864 640 1864 592
WIRE 2280 640 2280 480
WIRE -952 656 -952 624
WIRE -776 656 -776 624
WIRE -776 656 -952 656
WIRE -648 656 -648 608
WIRE -648 656 -776 656
WIRE 1736 656 1736 640
WIRE 776 688 776 640
WIRE 824 688 824 656
WIRE 1864 688 1864 656
WIRE 2280 688 2280 656
WIRE -1576 704 -1576 -704
WIRE -1032 704 -1032 608
WIRE -1032 704 -1576 704
WIRE -648 704 -648 656
WIRE -600 704 -600 672
WIRE 392 704 392 592
WIRE 392 704 344 704
WIRE 472 704 472 640
WIRE -952 720 -952 656
WIRE 2056 736 1864 736
WIRE 2232 736 2232 720
WIRE 2232 736 2056 736
WIRE 2376 736 2280 736
WIRE 504 752 472 752
WIRE -920 768 -952 768
WIRE 1752 768 1752 752
WIRE 1752 768 1736 768
WIRE 1816 768 1816 720
WIRE 1816 768 1752 768
WIRE 392 784 392 704
WIRE 424 784 392 784
WIRE -1032 800 -1032 704
WIRE -1000 800 -1032 800
WIRE 472 800 472 784
WIRE -952 816 -952 800
WIRE 2232 816 2232 736
WIRE 2280 816 2280 784
WIRE -184 832 -184 -192
WIRE 408 832 408 624
WIRE 408 832 -184 832
WIRE 1816 848 1816 768
WIRE 2008 848 1816 848
WIRE 472 880 472 800
WIRE 1864 880 1864 736
WIRE 2056 880 2056 736
WIRE -952 896 -952 816
WIRE 504 928 504 752
WIRE 504 928 472 928
WIRE -920 944 -920 768
WIRE -920 944 -952 944
WIRE 408 960 408 832
WIRE 424 960 408 960
WIRE 1800 960 1800 640
WIRE 1816 960 1800 960
WIRE 1864 960 1864 928
WIRE 2008 960 2008 848
WIRE 2056 960 2056 928
WIRE -1656 976 -1656 -656
WIRE -1016 976 -1016 640
WIRE -1016 976 -1656 976
WIRE -1000 976 -1016 976
WIRE 504 976 504 928
WIRE 504 976 472 976
WIRE 824 976 824 704
WIRE 824 976 504 976
WIRE 1960 976 1864 976
WIRE 2056 976 1960 976
WIRE 2280 976 2280 832
WIRE 2280 976 2056 976
WIRE -920 992 -920 944
WIRE -920 992 -952 992
WIRE -600 992 -600 720
WIRE -600 992 -920 992
WIRE 472 1024 472 976
WIRE -952 1040 -952 992
WIRE -520 1168 -520 624
WIRE 1752 1168 1752 768
WIRE 1752 1168 -520 1168
WIRE -2376 1248 -2376 -704
WIRE 344 1248 344 704
WIRE 344 1248 -2376 1248
FLAG -1288 -336 0
FLAG -1304 -672 0
FLAG -840 -992 0
FLAG -504 -624 0
FLAG -488 -288 0
FLAG -824 160 0
FLAG -952 1040 0
FLAG -856 384 0
FLAG 56 -480 0
FLAG 40 -816 0
FLAG 504 -1136 0
FLAG 840 -768 0
FLAG 856 -432 0
FLAG 520 16 0
FLAG 472 1024 0
FLAG 568 368 0
FLAG 1992 384 0
FLAG 1960 976 0
FLAG 2376 736 Cout
IOPIN 7008 1824 Out
FLAG 1128 -384 SUM
IOPIN 5760 704 Out
FLAG -2168 -528 0
FLAG -2040 -528 0
FLAG -1928 -528 0
SYMBOL pmos4 -1000 -912 R0
SYMATTR InstName M1
SYMBOL pmos4 -744 -912 R0
SYMATTR InstName M2
SYMBOL pmos4 -1000 -688 R0
SYMATTR InstName M3
SYMBOL pmos4 -744 -688 R0
SYMATTR InstName M4
SYMBOL pmos4 -1352 -592 R0
SYMATTR InstName M5
SYMBOL nmos4 -1352 -432 R0
SYMATTR InstName M6
SYMBOL voltage -1304 -576 R180
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage -840 -896 R180
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL pmos4 -440 -368 R180
SYMATTR InstName M7
SYMBOL nmos4 -440 -528 R180
SYMATTR InstName M8
SYMBOL voltage -488 -384 R0
SYMATTR InstName V3
SYMATTR Value 5
SYMBOL nmos4 -1016 -112 R0
SYMATTR InstName M9
SYMBOL nmos4 -1016 64 R0
SYMATTR InstName M10
SYMBOL nmos4 -696 -112 R0
SYMATTR InstName M11
SYMBOL nmos4 -696 64 R0
SYMATTR InstName M12
SYMBOL pmos4 -1000 528 R0
SYMATTR InstName M13
SYMATTR Value2 l=1040nm w=1040nm
SYMBOL nmos4 -1000 720 R0
SYMATTR InstName M14
SYMATTR Value2 l=1040nm w=1040nm
SYMBOL nmos4 -1000 896 R0
SYMATTR InstName M15
SYMATTR Value2 l=1040nm w=1040nm
SYMBOL voltage -856 512 R180
SYMATTR InstName V4
SYMATTR Value 3.3
SYMBOL pmos4 -824 528 R0
SYMATTR InstName M16
SYMBOL pmos4 -648 528 R0
SYMATTR InstName M17
SYMBOL nmos4 -648 624 R0
SYMATTR InstName M18
SYMBOL pmos4 344 -1056 R0
SYMATTR InstName M19
SYMBOL pmos4 600 -1056 R0
SYMATTR InstName M20
SYMBOL pmos4 344 -832 R0
SYMATTR InstName M21
SYMBOL pmos4 600 -832 R0
SYMATTR InstName M22
SYMBOL pmos4 -8 -736 R0
SYMATTR InstName M23
SYMBOL nmos4 -8 -576 R0
SYMATTR InstName M24
SYMBOL voltage 40 -720 R180
SYMATTR InstName V6
SYMATTR Value 5
SYMBOL voltage 504 -1040 R180
SYMATTR InstName V7
SYMATTR Value 5
SYMBOL pmos4 904 -512 R180
SYMATTR InstName M25
SYMBOL nmos4 904 -672 R180
SYMATTR InstName M26
SYMBOL voltage 856 -528 R0
SYMATTR InstName V8
SYMATTR Value 5
SYMBOL nmos4 328 -256 R0
SYMATTR InstName M27
SYMBOL nmos4 328 -80 R0
SYMATTR InstName M28
SYMBOL nmos4 648 -256 R0
SYMATTR InstName M29
SYMBOL nmos4 648 -80 R0
SYMATTR InstName M30
SYMBOL pmos4 424 512 R0
SYMATTR InstName M31
SYMATTR Value2 l=1040nm w=1040nm
SYMBOL nmos4 424 704 R0
SYMATTR InstName M32
SYMATTR Value2 l=1040nm w=1040nm
SYMBOL nmos4 424 880 R0
SYMATTR InstName M33
SYMATTR Value2 l=1040nm w=1040nm
SYMBOL voltage 568 496 R180
SYMATTR InstName V9
SYMATTR Value 3.3
SYMBOL pmos4 600 512 R0
SYMATTR InstName M34
SYMBOL pmos4 776 512 R0
SYMATTR InstName M35
SYMBOL nmos4 776 608 R0
SYMATTR InstName M36
SYMBOL pmos4 1816 496 R0
SYMATTR InstName M37
SYMBOL pmos4 1816 640 R0
SYMATTR InstName M38
SYMBOL nmos4 1816 880 R0
SYMATTR InstName M39
SYMBOL nmos4 2008 880 R0
SYMATTR InstName M40
SYMBOL voltage 1864 480 R180
SYMATTR InstName V10
SYMATTR Value 5
SYMBOL pmos4 2232 640 R0
SYMATTR InstName M41
SYMBOL nmos4 2232 736 R0
SYMATTR InstName M42
SYMBOL voltage -2040 -624 R0
SYMATTR InstName A
SYMATTR Value PULSE(0 5 0 5n 5n 15m 20m)
SYMBOL voltage -1928 -624 R0
SYMATTR InstName B
SYMATTR Value PULSE(0 5 0 5n 5n 10m 20m)
SYMBOL voltage -2168 -624 R0
SYMATTR InstName CIN
SYMATTR Value PULSE(0 5 0 5N 5N 20m 40m)