FPGA implementation of piecewise linear spiking neuron and simulation of cortical neurons