improved wide serial Binary -> BCD based on Xilinx App Note XAPP 029