SOC Reconfigurable Architecture for Software-Trained Neural Networks on FPGA