A neural network FPGA implementation