CPLDs can give you the logic you need with the pinout as needed.
CPLD XC9572XL has 72 macrocells and 5 V tolerant inputs.
+5V power supply must be provided using the DC socket.
It features an on-board JTAG programming interface, 50 MHz crystal, AMS-1117-3.3 voltage regulator chip, and programmable LEDs.
Board Size: 61 x 48 mm
All IO are routed onto connectors.