Full implementation of serial (de)multiplexor.