Event-driven contrastive divergence for spiking neuromorphic systems | Synapse