The write pulses (VP) for the excitatory and inhibitory synapses are defined as VPE and VPI, respectively. VP is slightly changed (ΔV) according to the VP direction and the error change is calculated. When the error increases (E2>E1), after applying VR at step G, VP is switched and jumps from one curve to another in Figure 4(b). This VP jump eliminates the hysteresis of θ1−θ2.