The binary-coded-decimal (BCD) format uses 4 bits to represent 10 decimal digits. For example, 259 in base 10 is repesented as "010 0101 101" in BCD format. A BCD incrementor adds 1 to a number in BCD format. For example, after incrementing, "0010 0101 1001" becomes "0010 0110 000".
Design a three-digit 12-bit incrementor and derive the code