* SPICE netlist
M1 Y B N005 N005 NMOS
M2 N005 D 0 0 NMOS
M3 Y A N005 N005 NMOS
M4 N005 C 0 0 NMOS
M5 N004 D Y N004 PMOS
M6 N002 C N004 N002 PMOS
M7 N002 A N003 N002 PMOS
M8 N003 B Y N003 PMOS
Vdd1 N002 0 5
V1 A 0 PULSE(0 5 0 1n 1n 8m 16m 1)
V2 B 0 PULSE(0 5 0 1n 1n 4m 8m 2)
V3 D 0 PULSE(0 5 0 1n 1n 1m 2m 8)
V4 C 0 PULSE(0 5 0 1n 1n 2m 4m 4)
+ TOX = 200E-10
+ PHI = 0.7
+ UO = 250
+ KP = 40E-6
+ RSH = 0
+ XJ = 500E-9
+ CGDO = 200E-12
+ CJ = 400E-6
+ CJSW = 300E-12 NSUB = 1E17 VTO = -0.9 ETA = 0
+ VMAX = 5E4 NFS = 1E12 LD = 100E-9 CGSO = 200E-12
+ PB = 1 MJSW = 0.5 GAMMA = 0.6 DELTA = 0.1
+ THETA = 0.1 KAPPA = 1 TPG = -1 CGBO = 1E-10 MJ= 0.5
+ TOX = 200E-10
+ PHI = 0.7
+ UO = 650
+ KP = 120E-6
+ RSH = 0
+ XJ = 500E-9
+ CGDO = 200E-12
+ CJ = 400E-6
+ CJSW = 300E-12
+ NSUB = 1E17 VTO = 1.0 ETA = 3.0E-6 VMAX = 1E5 NFS = 1E12
+ LD = 100E-9 CGSO = 200E-12 PB = 1 MJSW = 0.5
+ GAMMA = 0.5 DELTA = 3.0 THETA = 0.1
+ KAPPA = 0.3 TPG = 1 CGBO = 1E-10 MJ = 0.5
.tran 0 16m 0 16m startup

* LTspice schematic (.asc)
Version 4
SHEET 1 896 608
WIRE -176 -304 -448 -304
WIRE -384 -288 -432 -288
WIRE -336 -288 -384 -288
WIRE -288 -288 -336 -288
WIRE -240 -288 -288 -288
WIRE -192 -288 -240 -288
WIRE 192 -272 -96 -272
WIRE 192 -256 192 -272
WIRE 192 -256 128 -256
WIRE 256 -256 192 -256
WIRE -448 -240 -448 -304
WIRE -432 -240 -432 -288
WIRE -432 -240 -448 -240
WIRE -192 -240 -192 -288
WIRE -192 -240 -432 -240
WIRE -176 -240 -176 -304
WIRE -176 -240 -192 -240
WIRE -96 -240 -96 -272
WIRE 128 -240 128 -256
WIRE 144 -240 128 -240
WIRE 256 -240 256 -256
WIRE 256 -240 240 -240
WIRE -432 -208 -432 -240
WIRE -192 -208 -192 -240
WIRE -192 -208 -432 -208
WIRE 144 -192 144 -240
WIRE 144 -192 128 -192
WIRE 240 -192 240 -240
WIRE 256 -192 240 -192
WIRE -432 -176 -432 -208
WIRE -192 -176 -192 -208
WIRE -192 -176 -432 -176
WIRE 80 -160 32 -160
WIRE 400 -160 304 -160
WIRE -432 -144 -432 -176
WIRE -192 -144 -192 -176
WIRE -192 -144 -432 -144
WIRE -96 -144 -96 -160
WIRE -432 -112 -432 -144
WIRE -192 -112 -192 -144
WIRE -192 -112 -432 -112
WIRE 128 -112 128 -144
WIRE 144 -112 128 -112
WIRE 256 -112 256 -144
WIRE 256 -112 240 -112
WIRE 32 -96 32 -160
WIRE 32 -96 -96 -96
WIRE -432 -80 -432 -112
WIRE -192 -80 -192 -112
WIRE -192 -80 -432 -80
WIRE -96 -80 -96 -96
WIRE 144 -64 144 -112
WIRE 144 -64 128 -64
WIRE 240 -64 240 -112
WIRE 256 -64 240 -64
WIRE -432 -48 -432 -80
WIRE -192 -48 -192 -80
WIRE -192 -48 -432 -48
WIRE 80 -32 0 -32
WIRE 336 -32 304 -32
WIRE -432 -16 -432 -48
WIRE -192 -16 -192 -48
WIRE -192 -16 -432 -16
WIRE 128 0 128 -16
WIRE 256 0 256 -16
WIRE 256 0 128 0
WIRE 448 0 256 0
WIRE -432 16 -432 -16
WIRE -192 16 -192 -16
WIRE -192 16 -432 16
WIRE -96 16 -96 0
WIRE 128 16 128 0
WIRE 256 16 256 0
WIRE 400 32 400 -160
WIRE 448 32 400 32
WIRE -432 48 -432 16
WIRE -192 48 -192 16
WIRE -192 48 -432 48
WIRE 0 48 0 -32
WIRE 0 48 -96 48
WIRE 448 48 448 32
WIRE -96 64 -96 48
WIRE 144 64 128 64
WIRE 256 64 240 64
WIRE -432 80 -432 48
WIRE -192 80 -192 48
WIRE -192 80 -432 80
WIRE 32 96 32 -96
WIRE 80 96 32 96
WIRE 352 96 304 96
WIRE -432 112 -432 80
WIRE -192 112 -192 80
WIRE -192 112 -432 112
WIRE 144 112 144 64
WIRE 144 112 128 112
WIRE 240 112 240 64
WIRE 256 112 240 112
WIRE -432 144 -432 112
WIRE -192 144 -192 112
WIRE -192 144 -432 144
WIRE 128 144 128 112
WIRE 256 144 256 112
WIRE 256 144 128 144
WIRE 448 144 448 128
WIRE -96 160 -96 144
WIRE -432 176 -432 144
WIRE -192 176 -192 144
WIRE -192 176 -432 176
WIRE 336 176 336 -32
WIRE 448 176 336 176
WIRE 144 192 128 192
WIRE 256 192 240 192
WIRE 448 192 448 176
WIRE -432 208 -432 176
WIRE -192 208 -192 176
WIRE -192 208 -432 208
WIRE 80 224 48 224
WIRE 336 224 336 176
WIRE 336 224 304 224
WIRE -432 240 -432 208
WIRE -192 240 -192 208
WIRE -192 240 -432 240
WIRE 144 240 144 192
WIRE 144 240 128 240
WIRE 240 240 240 192
WIRE 256 240 240 240
WIRE 128 256 128 240
WIRE 256 256 256 240
WIRE -432 272 -432 240
WIRE -384 272 -384 -288
WIRE -384 272 -432 272
WIRE -336 272 -336 -288
WIRE -336 272 -384 272
WIRE -288 272 -288 -288
WIRE -288 272 -336 272
WIRE -240 272 -240 -288
WIRE -240 272 -288 272
WIRE -192 272 -192 240
WIRE -192 272 -240 272
WIRE 0 288 0 48
WIRE 352 288 352 96
WIRE 352 288 0 288
WIRE 448 288 448 272
WIRE 48 304 48 224
WIRE 400 304 400 32
WIRE 400 304 48 304
FLAG 128 256 0
FLAG 256 256 0
FLAG -96 -144 0
FLAG 448 0 Y
IOPIN 448 32 Out
FLAG -96 -96 A
IOPIN -96 -64 In
FLAG -96 16 0
FLAG -96 160 0
FLAG -96 48 B
IOPIN -96 80 In
FLAG 448 144 0
FLAG 448 288 0
FLAG 448 32 C
IOPIN 448 64 In
FLAG 448 176 D
IOPIN 448 208 In
SYMBOL nmos4 304 16 M0
SYMATTR InstName M1
SYMBOL nmos4 304 144 M0
SYMATTR InstName M2
SYMBOL nmos4 80 16 R0
SYMATTR InstName M3
SYMBOL nmos4 80 144 R0
SYMATTR InstName M4
SYMBOL pmos4 304 -112 M0
SYMATTR InstName M5
SYMBOL pmos4 304 -240 M0
SYMATTR InstName M6
SYMBOL pmos4 80 -240 R0
SYMATTR InstName M7
SYMBOL pmos4 80 -112 R0
SYMATTR InstName M8
SYMBOL voltage -96 -256 R0
SYMATTR InstName Vdd1
SYMATTR Value 5
SYMBOL voltage -96 -96 R0
SYMATTR InstName V1
SYMATTR Value PULSE(0 5 0 1n 1n 8m 16m 1)
SYMBOL voltage -96 48 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 5 0 1n 1n 4m 8m 2)
SYMBOL voltage 448 176 R0
SYMATTR InstName V3
SYMATTR Value PULSE(0 5 0 1n 1n 1m 2m 8)
SYMBOL voltage 448 32 R0
SYMATTR InstName V4
SYMATTR Value PULSE(0 5 0 1n 1n 2m 4m 4)