Sequence transformation vhdl implementation