The FPGA architecture with its powerful function generatorsevenly interspersed between flip-flops lends itself verywell to serial code conversion. Data is entered into a registerin one format, and retrieved from the same register in adifferent format. A common application of this technique isconverting binary data to BCD, and BCD to binary.