Feedback ? Send it to admin@fullchipdesign.com or join me at fullchip@gmail.com

Gray Coding in Digital Design
Some implementation in digital design requires Gray encoding where only one bit is allowed to transition between two consecutive numbers.
Decimal to binary to gray codes from 0-
Binary to Gray code mapping for 0 to 10
# Decimal = 0 : Binary = 10'b0000000000 : Gray = 10'b0000000000
# Decimal = 1 : Binary = 10'b0000000001 : Gray = 10'b0000000001
# Decimal = 2 : Binary = 10'b0000000010 : Gray = 10'b0000000011
# Decimal = 3 : Binary = 10'b0000000011 : Gray = 10'b0000000010
# Decimal = 4 : Binary = 10'b0000000100 : Gray = 10'b0000000110
# Decimal = 5 : Binary = 10'b0000000101 : Gray = 10'b0000000111
# Decimal = 6 : Binary = 10'b0000000110 : Gray = 10'b0000000101
# Decimal = 7 : Binary = 10'b0000000111 : Gray = 10'b0000000100
# Decimal = 8 : Binary = 10'b0000001000 : Gray = 10'b0000001100
# Decimal = 9 : Binary = 10'b0000001001 : Gray = 10'b0000001101
# Decimal = 10 : Binary = 10'b0000001010 : Gray = 10'b0000001111
Binary to Gray code mapping for 11 to 50 click here
Binary to Gray code mapping for 50 to 100 click here
Check out Verilog code to implement Gray Encoding
Check out Verilog code to implement Gray Encoding