Very easy and powerfull combination for developer - from TailorTec with all the source code:
Arduino Shield with XILINX CPLD XC9572XL
http://www.tailor-tec.de/smartstore/pi8/pd32.html
Board datasheet download:
www.tailor-tec.de/downloadordner/170818_doc_cpldshield.pdf
Arduino source code download:
www.tailor-tec.de/downloadordner/SPI_ExpanderXC9572XL_IN4_OUT16.ino
XILINX source code download:
www.tailor-tec.de/downloadordner/SPI_IN4_OUT16.zip