new encoder with better support of quadrature encoder
test bench for the encoder interface