A model of pulse neural networks