* SPICE netlist
A1 0 A1 0 B1 0 0 C1 0 XOR
A2 0 A1 0 B1 0 0 N001 0 AND
A3 0 A2 0 B2 0 0 N002 0 XOR
A4 0 N002 0 N001 0 0 C2 0 XOR
A5 0 N002 0 N001 0 0 N003 0 AND
A6 0 A2 0 B2 0 0 N005 0 AND
A7 0 N003 0 N005 0 0 N004 0 OR
A8 0 A3 0 B3 0 0 N006 0 XOR
A9 0 N006 0 N004 0 0 C3 0 XOR
A10 0 N006 0 N004 0 0 N007 0 AND
A11 0 A3 0 B3 0 0 N009 0 AND
A12 0 N007 0 N009 0 0 N008 0 OR
A13 0 A4 0 B4 0 0 N010 0 XOR
A14 0 N010 0 N008 0 0 C4 0 XOR
A15 0 N010 0 N008 0 0 N011 0 AND
A16 0 A4 0 B4 0 0 N012 0 AND
A17 0 N011 0 N012 0 0 0 0 OR

* LTspice schematic (.asc)
Version 4
SHEET 1 1648 1168
WIRE -696 -536 -824 -536
WIRE -648 -536 -696 -536
WIRE -392 -536 -584 -536
WIRE -728 -504 -824 -504
WIRE -648 -504 -728 -504
WIRE -696 -440 -696 -536
WIRE -648 -440 -696 -440
WIRE -456 -440 -584 -440
WIRE -728 -408 -728 -504
WIRE -648 -408 -728 -408
WIRE -392 -296 -824 -296
WIRE -360 -296 -392 -296
WIRE -232 -296 -296 -296
WIRE -424 -264 -824 -264
WIRE -360 -264 -424 -264
WIRE -232 -264 -232 -296
WIRE -200 -264 -232 -264
WIRE -24 -264 -136 -264
WIRE -456 -232 -456 -440
WIRE -248 -232 -456 -232
WIRE -200 -232 -248 -232
WIRE -184 -232 -200 -232
WIRE -232 -168 -232 -264
WIRE -200 -168 -232 -168
WIRE -88 -168 -136 -168
WIRE -248 -136 -248 -232
WIRE -200 -136 -248 -136
WIRE -88 -120 -88 -168
WIRE -56 -120 -88 -120
WIRE 56 -120 8 -120
WIRE -56 -88 -104 -88
WIRE -392 -72 -392 -296
WIRE -200 -72 -392 -72
WIRE -104 -72 -104 -88
WIRE -104 -72 -136 -72
WIRE -424 -40 -424 -264
WIRE -200 -40 -424 -40
WIRE 56 -24 56 -120
WIRE 56 -24 -88 -24
WIRE -24 24 -824 24
WIRE 8 24 -24 24
WIRE 136 24 72 24
WIRE -56 56 -824 56
WIRE 8 56 -56 56
WIRE 136 56 136 24
WIRE 168 56 136 56
WIRE 344 56 232 56
WIRE -88 88 -88 -24
WIRE 120 88 -88 88
WIRE 168 88 120 88
WIRE 184 88 168 88
WIRE 136 152 136 56
WIRE 168 152 136 152
WIRE 280 152 232 152
WIRE 120 184 120 88
WIRE 168 184 120 184
WIRE 280 200 280 152
WIRE 312 200 280 200
WIRE 424 200 376 200
WIRE 312 232 264 232
WIRE -24 248 -24 24
WIRE 168 248 -24 248
WIRE 264 248 264 232
WIRE 264 248 232 248
WIRE -56 280 -56 56
WIRE 168 280 -56 280
WIRE 424 280 424 200
WIRE 424 280 296 280
WIRE 376 328 -824 328
WIRE 408 328 376 328
WIRE 536 328 472 328
WIRE 344 360 -824 360
WIRE 408 360 344 360
WIRE 536 360 536 328
WIRE 568 360 536 360
WIRE 744 360 632 360
WIRE 296 392 296 280
WIRE 520 392 296 392
WIRE 568 392 520 392
WIRE 584 392 568 392
WIRE 536 456 536 360
WIRE 568 456 536 456
WIRE 680 456 632 456
WIRE 520 488 520 392
WIRE 568 488 520 488
WIRE 680 504 680 456
WIRE 712 504 680 504
WIRE 824 504 776 504
WIRE 712 536 664 536
WIRE 376 552 376 328
WIRE 568 552 376 552
WIRE 664 552 664 536
WIRE 664 552 632 552
WIRE 344 584 344 360
WIRE 568 584 344 584
FLAG -392 -536 C1
IOPIN 864 -176 Out
FLAG -24 -264 C2
IOPIN 1232 96 Out
FLAG 344 56 C3
IOPIN 1600 416 Out
FLAG 744 360 C4
IOPIN 2000 720 Out
FLAG 824 504 0
FLAG -824 -296 A2
IOPIN 432 64 In
FLAG -824 24 A3
IOPIN 432 384 In
FLAG -824 328 A4
IOPIN 432 688 In
FLAG -824 -536 A1
IOPIN 432 -176 In
FLAG -824 -504 B1
IOPIN 432 -144 In
FLAG -824 -264 B2
IOPIN 432 96 In
FLAG -824 56 B3
IOPIN 432 416 In
FLAG -824 360 B4
IOPIN 432 720 In
SYMBOL Digital\\xor -600 -584 R0
SYMATTR InstName A1
SYMBOL Digital\\and -616 -488 R0
SYMATTR InstName A2
SYMBOL Digital\\xor -312 -344 R0
SYMATTR InstName A3
SYMBOL Digital\\xor -152 -312 R0
SYMATTR InstName A4
SYMBOL Digital\\and -168 -216 R0
SYMATTR InstName A5
SYMBOL Digital\\and -168 -120 R0
SYMATTR InstName A6
SYMBOL Digital\\or -24 -168 R0
SYMATTR InstName A7
SYMBOL Digital\\xor 56 -24 R0
SYMATTR InstName A8
SYMBOL Digital\\xor 216 8 R0
SYMATTR InstName A9
SYMBOL Digital\\and 200 104 R0
SYMATTR InstName A10
SYMBOL Digital\\and 200 200 R0
SYMATTR InstName A11
SYMBOL Digital\\or 344 152 R0
SYMATTR InstName A12
SYMBOL Digital\\xor 456 280 R0
SYMATTR InstName A13
SYMBOL Digital\\xor 616 312 R0
SYMATTR InstName A14
SYMBOL Digital\\and 600 408 R0
SYMATTR InstName A15
SYMBOL Digital\\and 600 504 R0
SYMATTR InstName A16
SYMBOL Digital\\or 744 456 R0
SYMATTR InstName A17