Programmable Analog Pulse-Firing Neural Networks