1. A method comprising: an electronic device generating a pre-synaptic pulse that occurs a predetermined period of time after receiving a pre-synaptic spike at a first input; the electronic device generating a post-synaptic pulse that starts at a baseline value and reaches a first voltage value a first period of time after receiving a post-synaptic spike at a second input, followed by a second voltage value a second period of time after said post synaptic spike, followed by a return to said baseline voltage a third period of time after said post-synaptic spike; applying said generated pre-synaptic pulse to a pre-synaptic node of a synaptic device in series with a rectifying element comprising a turn-on voltage based on a threshold; and applying said generated post-synaptic pulse to a post-synaptic node of said synaptic device.