The FPGA architecture with its powerful function generators evenly interspersed between flip-flops lends itself very well to serial code conversion. Data is entered into a register in one format, and retrieved from the same register in a different format. A common application of this technique is converting binary data to BCD, and BCD to binary.