4-bit binary number, let Binary digits are b4, b3 , b2 , b1, where b4 is the most significant bit (MSB) and b1 is the least significant bit (LSB) of Binary. Gray code digits are g4,g3 ,g2 ,g1, where g4 is the most significant bit (MSB) and g1 is the least significant bit (LSB) of Gray code.