* SPICE netlist
V1 Vdd 0 5
V8 s 0 PWL(0 0 2 0 2.005 5 4 5)
V22 b1 0 0
V23 a1 0 0
M137 N001 a1 Vdd Vdd PMOS
M138 N001 ~s Vdd Vdd PMOS
M139 N001 a1 N003 N003 NMOS
M140 N003 ~s 0 0 NMOS
M141 N002 b1 Vdd Vdd PMOS
M142 N002 s Vdd Vdd PMOS
M143 N002 b1 N005 N005 NMOS
M144 N005 s 0 0 NMOS
M145 out_2to1 N001 Vdd Vdd PMOS
M146 out_2to1 N002 Vdd Vdd PMOS
M147 out_2to1 N001 N004 N004 NMOS
M148 N004 N002 0 0 NMOS
M149 ~s s 0 0 NMOS
M150 ~s s Vdd Vdd PMOS
V24 d 0 5
V25 c 0 5
M151 ~s0 s0 0 0 NMOS
M152 ~s0 s0 Vdd Vdd PMOS
M153 ~s1 s1 0 0 NMOS
M154 ~s1 s1 Vdd Vdd PMOS
M155 aout a Vdd Vdd PMOS
M156 aout ~s0 Vdd Vdd PMOS
M157 aout a P001 P001 NMOS
M158 P001 ~s0 P002 P002 NMOS
M159 P002 ~s1 0 0 NMOS
M160 aout ~s1 Vdd Vdd PMOS
M161 bout b Vdd Vdd PMOS
M162 bout ~s0 Vdd Vdd PMOS
M163 bout b P003 P003 NMOS
M164 P003 ~s0 P004 P004 NMOS
M165 P004 s1 0 0 NMOS
M166 bout s1 Vdd Vdd PMOS
M167 cout c Vdd Vdd PMOS
M168 cout s0 Vdd Vdd PMOS
M169 cout c P005 P005 NMOS
M170 P005 s0 P006 P006 NMOS
M171 P006 ~s1 0 0 NMOS
M172 cout ~s1 Vdd Vdd PMOS
M173 dout d Vdd Vdd PMOS
M174 dout s0 Vdd Vdd PMOS
M175 dout d P007 P007 NMOS
M176 P007 s0 P008 P008 NMOS
M177 P008 s1 0 0 NMOS
M178 dout s1 Vdd Vdd PMOS
V26 b 0 0
V27 a 0 PWL(0 0 2 0 2.005 5 3 5)
M179 out_4to1 aout Vdd Vdd PMOS
M180 out_4to1 cout Vdd Vdd PMOS
M181 out_4to1 aout P009 P009 NMOS
M182 P009 bout P010 P010 NMOS
M183 P010 cout P011 P011 NMOS
M184 out_4to1 dout Vdd Vdd PMOS
M185 P011 dout 0 0 NMOS
M186 out_4to1 bout Vdd Vdd PMOS
.tran 16

* LTspice schematic (.asc)
Version 4
SHEET 1 4720 1280
WIRE -1320 -592 -1320 -640
WIRE -1320 -592 -1400 -592
WIRE -1240 -592 -1320 -592
WIRE -1400 -576 -1400 -592
WIRE -1240 -576 -1240 -592
WIRE -1448 -560 -1656 -560
WIRE -1160 -560 -1192 -560
WIRE 1256 -528 1256 -560
WIRE 1256 -528 968 -528
WIRE 1624 -528 1256 -528
WIRE 936 -512 776 -512
WIRE 968 -512 968 -528
WIRE 968 -512 936 -512
WIRE 1144 -512 968 -512
WIRE 1592 -512 1480 -512
WIRE 1624 -512 1624 -528
WIRE 1624 -512 1592 -512
WIRE 1752 -512 1624 -512
WIRE 776 -496 776 -512
WIRE 936 -496 936 -512
WIRE 1144 -496 1144 -512
WIRE 1480 -496 1480 -512
WIRE 1592 -496 1592 -512
WIRE 1752 -496 1752 -512
WIRE 728 -480 712 -480
WIRE 1224 -480 1192 -480
WIRE 1432 -480 1400 -480
WIRE 1832 -480 1800 -480
WIRE -1400 -448 -1400 -480
WIRE -1320 -448 -1400 -448
WIRE -1240 -448 -1240 -480
WIRE -1240 -448 -1320 -448
WIRE -1320 -416 -1320 -448
WIRE -1192 -416 -1320 -416
WIRE -1320 -400 -1320 -416
WIRE 776 -368 776 -400
WIRE 936 -368 936 -400
WIRE 936 -368 776 -368
WIRE 968 -368 936 -368
WIRE 1144 -368 1144 -400
WIRE 1144 -368 968 -368
WIRE 1480 -368 1480 -400
WIRE 1592 -368 1592 -400
WIRE 1592 -368 1480 -368
WIRE 1624 -368 1592 -368
WIRE 1752 -368 1752 -400
WIRE 1752 -368 1624 -368
WIRE 968 -336 968 -368
WIRE 1016 -336 968 -336
WIRE 1624 -336 1624 -368
WIRE 1704 -336 1624 -336
WIRE -1992 -320 -1992 -352
WIRE -1368 -320 -1400 -320
WIRE -1032 -320 -1032 -368
WIRE -1032 -320 -1112 -320
WIRE -952 -320 -1032 -320
WIRE 968 -320 968 -336
WIRE 1624 -320 1624 -336
WIRE -1112 -304 -1112 -320
WIRE -952 -304 -952 -320
WIRE 1256 -304 712 -304
WIRE -1192 -288 -1192 -416
WIRE -1160 -288 -1192 -288
WIRE -872 -288 -904 -288
WIRE -1320 -272 -1320 -304
WIRE -1720 -256 -1720 -272
WIRE -2360 -240 -2360 -304
WIRE -1768 -240 -1816 -240
WIRE 920 -240 888 -240
WIRE 1256 -240 1256 -304
WIRE 1576 -240 1256 -240
WIRE 360 -224 360 -240
WIRE 2072 -224 1944 -224
WIRE 2120 -224 2120 -272
WIRE 2120 -224 2072 -224
WIRE 2168 -224 2120 -224
WIRE 2296 -224 2168 -224
WIRE -1992 -208 -1992 -240
WIRE 312 -208 264 -208
WIRE 1944 -208 1944 -224
WIRE 2072 -208 2072 -224
WIRE 2168 -208 2168 -224
WIRE 2296 -208 2296 -224
WIRE -1368 -192 -1400 -192
WIRE 1896 -192 1864 -192
WIRE 2360 -192 2344 -192
WIRE -1112 -176 -1112 -208
WIRE -1032 -176 -1112 -176
WIRE -952 -176 -952 -208
WIRE -952 -176 -1032 -176
WIRE -1320 -160 -1320 -176
WIRE -1816 -144 -1816 -240
WIRE -1816 -144 -1848 -144
WIRE -1720 -144 -1720 -160
WIRE -1688 -144 -1720 -144
WIRE -1032 -144 -1032 -176
WIRE -840 -144 -1032 -144
WIRE 920 -144 888 -144
WIRE 1576 -144 1512 -144
WIRE -1720 -128 -1720 -144
WIRE -1032 -128 -1032 -144
WIRE 264 -112 264 -208
WIRE 264 -112 232 -112
WIRE 360 -112 360 -128
WIRE 392 -112 360 -112
WIRE 360 -96 360 -112
WIRE 1944 -80 1944 -112
WIRE 2072 -80 2072 -112
WIRE 2072 -80 1944 -80
WIRE 2120 -80 2072 -80
WIRE 2168 -80 2168 -112
WIRE 2168 -80 2120 -80
WIRE 2296 -80 2296 -112
WIRE 2296 -80 2168 -80
WIRE -2360 -64 -2360 -160
WIRE -1816 -48 -1816 -144
WIRE -1768 -48 -1816 -48
WIRE -1192 -48 -1192 -288
WIRE -1080 -48 -1192 -48
WIRE 920 -48 888 -48
WIRE 1576 -48 1512 -48
WIRE 2120 -48 2120 -80
WIRE 2328 -48 2120 -48
WIRE -1320 -32 -1320 -80
WIRE -1320 -32 -1400 -32
WIRE -1240 -32 -1320 -32
WIRE 2120 -32 2120 -48
WIRE -1720 -16 -1720 -32
WIRE -1400 -16 -1400 -32
WIRE -1240 -16 -1240 -32
WIRE -200 -16 -200 -48
WIRE -120 -16 -120 -48
WIRE -40 -16 -40 -48
WIRE 40 -16 40 -48
WIRE 264 -16 264 -112
WIRE 312 -16 264 -16
WIRE 968 -16 968 -32
WIRE 1624 -16 1624 -32
WIRE -1448 0 -1464 0
WIRE -1176 0 -1192 0
WIRE -1032 0 -1032 -32
WIRE 360 16 360 0
WIRE 2072 48 2040 48
WIRE -1080 80 -1128 80
WIRE -200 96 -200 64
WIRE -120 96 -120 64
WIRE -40 96 -40 64
WIRE 40 96 40 64
WIRE 360 96 360 80
WIRE 936 96 776 96
WIRE 968 96 968 48
WIRE 968 96 936 96
WIRE 1144 96 968 96
WIRE 1592 96 1480 96
WIRE 1624 96 1624 48
WIRE 1624 96 1592 96
WIRE 1752 96 1624 96
WIRE -2088 112 -2088 80
WIRE -2008 112 -2008 80
WIRE -1400 112 -1400 80
WIRE -1320 112 -1400 112
WIRE -1240 112 -1240 80
WIRE -1240 112 -1320 112
WIRE -1032 112 -1032 96
WIRE 312 112 264 112
WIRE 776 112 776 96
WIRE 936 112 936 96
WIRE 1144 112 1144 96
WIRE 1480 112 1480 96
WIRE 1592 112 1592 96
WIRE 1752 112 1752 96
WIRE 728 128 696 128
WIRE 1224 128 1192 128
WIRE 1432 128 1400 128
WIRE -1320 144 -1320 112
WIRE -1128 144 -1128 80
WIRE -1128 144 -1320 144
WIRE -872 144 -872 -288
WIRE -872 144 -1128 144
WIRE 2072 144 2040 144
WIRE -1320 160 -1320 144
WIRE 264 208 264 112
WIRE 264 208 232 208
WIRE 360 208 360 192
WIRE 392 208 360 208
WIRE -2088 224 -2088 192
WIRE -2008 224 -2008 192
WIRE 360 224 360 208
WIRE -1368 240 -1656 240
WIRE 776 240 776 208
WIRE 936 240 936 208
WIRE 936 240 776 240
WIRE 968 240 936 240
WIRE 1144 240 1144 208
WIRE 1144 240 968 240
WIRE 1480 240 1480 208
WIRE 1592 240 1592 208
WIRE 1592 240 1480 240
WIRE 1624 240 1592 240
WIRE 1752 240 1752 208
WIRE 1752 240 1624 240
WIRE 2072 240 2040 240
WIRE -1320 272 -1320 256
WIRE 968 272 968 240
WIRE 1016 272 968 272
WIRE 1624 272 1624 240
WIRE 1704 272 1624 272
WIRE 968 288 968 272
WIRE 1624 288 1624 272
WIRE 264 304 264 208
WIRE 312 304 264 304
WIRE 360 336 360 320
WIRE 2072 336 2040 336
WIRE -1368 352 -1400 352
WIRE 920 368 712 368
WIRE 1576 368 1256 368
WIRE 2120 368 2120 352
WIRE -1320 400 -1320 368
WIRE 920 464 888 464
WIRE 1576 464 1512 464
WIRE 1256 496 1256 368
WIRE 1256 496 712 496
WIRE 920 560 888 560
WIRE 1576 560 1512 560
WIRE 968 592 968 576
WIRE 1304 592 968 592
WIRE 1624 592 1624 576
WIRE 1624 592 1304 592
WIRE 1304 640 1304 592
FLAG -2360 -64 0
FLAG -2360 -304 Vdd
FLAG -1992 -208 0
FLAG -1992 -352 s
IOPIN -7152 -480 In
FLAG -2008 224 0
FLAG -2008 80 b1
IOPIN -7168 -48 In
FLAG -2088 224 0
FLAG -2088 80 a1
IOPIN -7248 -48 In
FLAG -1320 -640 Vdd
FLAG -1320 -160 0
FLAG -1400 -192 ~s
IOPIN -6560 -320 In
FLAG -1400 -320 a1
IOPIN -6560 -448 In
FLAG -1656 -560 a1
IOPIN -6816 -688 In
FLAG -1160 -560 ~s
IOPIN -6320 -688 In
FLAG -1320 -80 Vdd
FLAG -1320 400 0
FLAG -1400 352 s
IOPIN -6560 224 In
FLAG -1656 240 b1
IOPIN -6816 112 In
FLAG -1464 0 b1
IOPIN -6624 -128 In
FLAG -1176 0 s
IOPIN -6336 -128 In
FLAG -1032 -368 Vdd
FLAG -1032 112 0
FLAG -840 -144 out_2to1
IOPIN -6000 -272 Out
FLAG -1720 -16 0
FLAG -1720 -272 Vdd
FLAG -1688 -144 ~s
IOPIN -6848 -272 Out
FLAG -1848 -144 s
IOPIN -7008 -272 In
FLAG 40 96 0
FLAG 40 -48 d
IOPIN -5120 -176 In
FLAG -40 96 0
FLAG -40 -48 c
IOPIN -5200 -176 In
FLAG 360 16 0
FLAG 360 -240 Vdd
FLAG 392 -112 ~s0
IOPIN -4768 -240 Out
FLAG 232 -112 s0
IOPIN -4928 -240 In
FLAG 360 336 0
FLAG 360 80 Vdd
FLAG 392 208 ~s1
IOPIN -4768 80 Out
FLAG 232 208 s1
IOPIN -4928 80 In
FLAG 1256 -560 Vdd
FLAG 712 -480 a
IOPIN -4448 -608 In
FLAG 984 -480 ~s0
IOPIN -4176 -608 In
FLAG 1016 -336 aout
IOPIN -4144 -464 Out
FLAG 888 -144 ~s0
IOPIN -4272 -272 In
FLAG 888 -240 a
IOPIN -4272 -368 In
FLAG 968 -16 0
FLAG 888 -48 ~s1
IOPIN -4272 -176 In
FLAG 1224 -480 ~s1
IOPIN -3936 -608 In
FLAG 1400 -480 b
IOPIN -3760 -608 In
FLAG 1640 -480 ~s0
IOPIN -3520 -608 In
FLAG 1704 -336 bout
IOPIN -3456 -464 Out
FLAG 1512 -144 ~s0
IOPIN -3648 -272 In
FLAG 712 -304 b
IOPIN -4448 -432 In
FLAG 1624 -16 0
FLAG 1512 -48 s1
IOPIN -3648 -176 In
FLAG 1832 -480 s1
IOPIN -3328 -608 In
FLAG 968 48 Vdd
FLAG 696 128 c
IOPIN -4464 0 In
FLAG 984 128 s0
IOPIN -4176 0 In
FLAG 1016 272 cout
IOPIN -4144 144 Out
FLAG 888 464 s0
IOPIN -4272 336 In
FLAG 712 368 c
IOPIN -4448 240 In
FLAG 888 560 ~s1
IOPIN -4272 432 In
FLAG 1224 128 ~s1
IOPIN -3936 0 In
FLAG 1624 48 Vdd
FLAG 1400 128 d
IOPIN -3760 0 In
FLAG 1640 128 s0
IOPIN -3520 0 In
FLAG 1704 272 dout
IOPIN -3456 144 Out
FLAG 1512 464 s0
IOPIN -3648 336 In
FLAG 712 496 d
IOPIN -4448 368 In
FLAG 1512 560 s1
IOPIN -3648 432 In
FLAG -120 96 0
FLAG -120 -48 b
IOPIN -5280 -176 In
FLAG -200 96 0
FLAG -200 -48 a
IOPIN -5360 -176 In
FLAG 2120 -272 Vdd
FLAG 1864 -192 aout
IOPIN -3296 -320 In
FLAG 2216 -192 cout
IOPIN -2944 -320 In
FLAG 2328 -48 out_4to1
IOPIN -2832 -176 Out
FLAG 2040 144 bout
IOPIN -3120 16 In
FLAG 2040 48 aout
IOPIN -3120 -80 In
FLAG 2040 240 cout
IOPIN -3120 112 In
FLAG 2360 -192 dout
IOPIN -2800 -320 In
FLAG 2120 368 0
FLAG 2040 336 dout
IOPIN -3120 208 In
FLAG 2024 -192 bout
IOPIN -3136 -320 In
FLAG 1304 640 0
FLAG 1800 128 s1
IOPIN -3360 0 In
SYMBOL voltage -2360 -256 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage -1992 -336 M0
SYMATTR InstName V8
SYMATTR Value PWL(0 0 2 0 2.005 5 4 5)
SYMBOL voltage -2008 96 M0
SYMATTR InstName V22
SYMATTR Value 0
SYMBOL voltage -2088 96 M0
SYMATTR InstName V23
SYMATTR Value 0
SYMBOL pmos -1448 -480 M180
SYMATTR InstName M137
SYMBOL pmos -1192 -480 R180
SYMATTR InstName M138
SYMBOL nmos -1368 -400 R0
SYMATTR InstName M139
SYMBOL nmos -1368 -272 R0
SYMATTR InstName M140
SYMBOL pmos -1448 80 M180
SYMATTR InstName M141
SYMBOL pmos -1192 80 R180
SYMATTR InstName M142
SYMBOL nmos -1368 160 R0
SYMATTR InstName M143
SYMBOL nmos -1368 272 R0
SYMATTR InstName M144
SYMBOL pmos -1160 -208 M180
SYMATTR InstName M145
SYMBOL pmos -904 -208 R180
SYMATTR InstName M146
SYMBOL nmos -1080 -128 R0
SYMATTR InstName M147
SYMBOL nmos -1080 0 R0
SYMATTR InstName M148
SYMBOL nmos -1768 -128 R0
SYMATTR InstName M149
SYMBOL pmos -1768 -160 M180
SYMATTR InstName M150
SYMBOL voltage 40 -32 M0
SYMATTR InstName V24
SYMATTR Value 5
SYMBOL voltage -40 -32 M0
SYMATTR InstName V25
SYMATTR Value 5
SYMBOL nmos 312 -96 R0
SYMATTR InstName M151
SYMBOL pmos 312 -128 M180
SYMATTR InstName M152
SYMBOL nmos 312 224 R0
SYMATTR InstName M153
SYMBOL pmos 312 192 M180
SYMATTR InstName M154
SYMBOL pmos 728 -400 M180
SYMATTR InstName M155
SYMBOL pmos 984 -400 R180
SYMATTR InstName M156
SYMBOL nmos 920 -320 R0
SYMATTR InstName M157
SYMBOL nmos 920 -224 R0
SYMATTR InstName M158
SYMBOL nmos 920 -128 R0
SYMATTR InstName M159
SYMBOL pmos 1192 -400 R180
SYMATTR InstName M160
SYMBOL pmos 1432 -400 M180
SYMATTR InstName M161
SYMBOL pmos 1640 -400 R180
SYMATTR InstName M162
SYMBOL nmos 1576 -320 R0
SYMATTR InstName M163
SYMBOL nmos 1576 -224 R0
SYMATTR InstName M164
SYMBOL nmos 1576 -128 R0
SYMATTR InstName M165
SYMBOL pmos 1800 -400 R180
SYMATTR InstName M166
SYMBOL pmos 728 208 M180
SYMATTR InstName M167
SYMBOL pmos 984 208 R180
SYMATTR InstName M168
SYMBOL nmos 920 288 R0
SYMATTR InstName M169
SYMBOL nmos 920 384 R0
SYMATTR InstName M170
SYMBOL nmos 920 480 R0
SYMATTR InstName M171
SYMBOL pmos 1192 208 R180
SYMATTR InstName M172
SYMBOL pmos 1432 208 M180
SYMATTR InstName M173
SYMBOL pmos 1640 208 R180
SYMATTR InstName M174
SYMBOL nmos 1576 288 R0
SYMATTR InstName M175
SYMBOL nmos 1576 384 R0
SYMATTR InstName M176
SYMBOL nmos 1576 480 R0
SYMATTR InstName M177
SYMBOL pmos 1800 208 R180
SYMATTR InstName M178
SYMBOL voltage -120 -32 M0
SYMATTR InstName V26
SYMATTR Value 0
SYMBOL voltage -200 -32 M0
SYMATTR InstName V27
SYMATTR Value PWL(0 0 2 0 2.005 5 3 5)
SYMBOL pmos 1896 -112 M180
SYMATTR InstName M179
SYMBOL pmos 2216 -112 R180
SYMATTR InstName M180
SYMBOL nmos 2072 -32 R0
SYMATTR InstName M181
SYMBOL nmos 2072 64 R0
SYMATTR InstName M182
SYMBOL nmos 2072 160 R0
SYMATTR InstName M183
SYMBOL pmos 2344 -112 R180
SYMATTR InstName M184
SYMBOL nmos 2072 256 R0
SYMATTR InstName M185
SYMBOL pmos 2024 -112 M180
SYMATTR InstName M186