1. A method comprising: receiving an analog input signal; transforming the analog input signal into an N-bit codeword, wherein each bit of the N-bit codeword is represented by an electronic pulse, wherein N is greater than one; loading the N-bit codeword into an N-bit circular shift register, wherein each bit of the N-bit circular shift register is coupled to a corresponding switch of N switches; sending each bit of the N-bit codeword from the N-bit circular shift register through the corresponding switch of the N switches, wherein each switch of the N switches applies a corresponding weight to the bit to produce a weighted bit; summing the N weighted bits using an integrator to obtain a summation of the N weighted bits; and outputting a signal corresponding to the summation of the N weighted bits produced by the N switches, the signal representing a synaptic transfer function.