A new electronic device can directly model the behaviors of a synapse, which is a connection between two neurons.