A generic size neural network based on FPGA