Immunity to Device Variations in a Spiking Neural Network With Memristive Nanodevices | Synapse