Spiking representation learning for associative memories | Synapse