working neuron model, encoder, and decoder, and testbenches