Development and applications of a multi-purpose digital controller with a System-on-Chip FPGA for accelerators