CoDi is a cellular automaton model for spiking neural networks