Digital Realization of Spiking Neural Network