* SPICE netlist
A1 0 A1 0 B1 0 N001 0 0 AND
A2 0 N004 0 N005 0 N002 0 0 AND
A3 0 N001 0 N002 0 N003 0 0 AND
A4 A1 0 0 0 0 N004 0 0 BUF
A5 B1 0 0 0 0 N005 0 0 BUF
A6 0 A2 0 B2 0 N006 0 0 AND
A7 0 N009 0 N010 0 N007 0 0 AND
A8 0 N006 0 N007 0 N008 0 0 AND
A9 A2 0 0 0 0 N009 0 0 BUF
A10 B2 0 0 0 0 N010 0 0 BUF
A11 0 A3 0 B3 0 N014 0 0 AND
A12 0 N016 0 N017 0 N015 0 0 AND
A13 0 N014 0 N015 0 N011 0 0 AND
A14 A3 0 0 0 0 N016 0 0 BUF
A15 B3 0 0 0 0 N017 0 0 BUF
A16 0 A4 0 B4 0 N018 0 0 AND
A17 0 N020 0 N021 0 N019 0 0 AND
A18 0 N018 0 N019 0 N012 0 0 AND
A19 A4 0 0 0 0 N020 0 0 BUF
A20 B4 0 0 0 0 N021 0 0 BUF
A21 N003 N008 N011 N012 0 N013 0 0 AND
A22 N013 0 0 0 0 VOUT 0 0 BUF

* LTspice schematic (.asc)
Version 4
SHEET 1 912 1072
WIRE -296 -488 -456 -488
WIRE -136 -488 -296 -488
WIRE -328 -456 -392 -456
WIRE -136 -456 -328 -456
WIRE 24 -456 -72 -456
WIRE 24 -424 -8 -424
WIRE 200 -424 88 -424
WIRE -296 -376 -296 -488
WIRE -264 -376 -296 -376
WIRE -136 -376 -200 -376
WIRE -136 -344 -168 -344
WIRE -8 -344 -8 -424
WIRE -8 -344 -72 -344
WIRE -328 -328 -328 -456
WIRE -264 -328 -328 -328
WIRE -168 -328 -168 -344
WIRE -168 -328 -200 -328
WIRE -312 -248 -456 -248
WIRE -152 -248 -312 -248
WIRE -344 -216 -408 -216
WIRE -152 -216 -344 -216
WIRE 8 -216 -88 -216
WIRE 8 -184 -24 -184
WIRE 136 -184 72 -184
WIRE -312 -136 -312 -248
WIRE -280 -136 -312 -136
WIRE -152 -136 -216 -136
WIRE -152 -104 -184 -104
WIRE -24 -104 -24 -184
WIRE -24 -104 -88 -104
WIRE -344 -88 -344 -216
WIRE -280 -88 -344 -88
WIRE -184 -88 -184 -104
WIRE -184 -88 -216 -88
WIRE 200 -40 200 -424
WIRE 232 -40 200 -40
WIRE 136 -24 136 -184
WIRE 232 -24 136 -24
WIRE 232 -8 136 -8
WIRE 232 8 200 8
WIRE 360 8 296 8
WIRE 456 8 424 8
WIRE -312 72 -456 72
WIRE -152 72 -312 72
WIRE -344 104 -392 104
WIRE -152 104 -344 104
WIRE 8 104 -88 104
WIRE 8 136 -24 136
WIRE 136 136 136 -8
WIRE 136 136 72 136
WIRE -312 184 -312 72
WIRE -280 184 -312 184
WIRE -152 184 -216 184
WIRE -152 216 -184 216
WIRE -24 216 -24 136
WIRE -24 216 -88 216
WIRE -344 232 -344 104
WIRE -280 232 -344 232
WIRE -184 232 -184 216
WIRE -184 232 -216 232
WIRE -312 376 -456 376
WIRE -152 376 -312 376
WIRE -344 408 -392 408
WIRE -152 408 -344 408
WIRE 8 408 -88 408
WIRE 8 440 -24 440
WIRE 200 440 200 8
WIRE 200 440 72 440
WIRE -312 488 -312 376
WIRE -280 488 -312 488
WIRE -152 488 -216 488
WIRE -152 520 -184 520
WIRE -24 520 -24 440
WIRE -24 520 -88 520
WIRE -344 536 -344 408
WIRE -280 536 -344 536
WIRE -184 536 -184 520
WIRE -184 536 -216 536
FLAG -456 -248 A2
IOPIN 432 64 In
FLAG -456 72 A3
IOPIN 432 384 In
FLAG -456 376 A4
IOPIN 432 688 In
FLAG -456 -488 A1
IOPIN 432 -176 In
FLAG -392 -456 B1
IOPIN 496 -144 In
FLAG -408 -216 B2
IOPIN 480 96 In
FLAG -392 104 B3
IOPIN 496 416 In
FLAG -392 408 B4
IOPIN 496 720 In
FLAG 456 8 VOUT
IOPIN 1344 320 Out
SYMBOL Digital\\and -104 -536 R0
SYMATTR InstName A1
SYMBOL Digital\\and -104 -424 R0
SYMATTR InstName A2
SYMBOL Digital\\and 56 -504 R0
SYMATTR InstName A3
SYMBOL Digital\\inv -264 -440 R0
SYMATTR InstName A4
SYMBOL Digital\\inv -264 -392 R0
SYMATTR InstName A5
SYMBOL Digital\\and -120 -296 R0
SYMATTR InstName A6
SYMBOL Digital\\and -120 -184 R0
SYMATTR InstName A7
SYMBOL Digital\\and 40 -264 R0
SYMATTR InstName A8
SYMBOL Digital\\inv -280 -200 R0
SYMATTR InstName A9
SYMBOL Digital\\inv -280 -152 R0
SYMATTR InstName A10
SYMBOL Digital\\and -120 24 R0
SYMATTR InstName A11
SYMBOL Digital\\and -120 136 R0
SYMATTR InstName A12
SYMBOL Digital\\and 40 56 R0
SYMATTR InstName A13
SYMBOL Digital\\inv -280 120 R0
SYMATTR InstName A14
SYMBOL Digital\\inv -280 168 R0
SYMATTR InstName A15
SYMBOL Digital\\and -120 328 R0
SYMATTR InstName A16
SYMBOL Digital\\and -120 440 R0
SYMATTR InstName A17
SYMBOL Digital\\and 40 360 R0
SYMATTR InstName A18
SYMBOL Digital\\inv -280 424 R0
SYMATTR InstName A19
SYMBOL Digital\\inv -280 472 R0
SYMATTR InstName A20
SYMBOL Digital\\and 264 -72 R0
SYMATTR InstName A21
SYMBOL Digital\\inv 360 -56 R0
SYMATTR InstName A22