DigiFlop

Undoing the Gray-code conversion, one XOR chain at a time.

Verilog Coding Exercise · Combinational I
Gray to Binary Code Converter
Undoing the Gray-code conversion, one XOR chain at a time.

Recovers the original binary value from a Gray-coded number — the reverse operation, useful whenever a Gray-coded counter needs to be compared or displayed as ordinary binary.

Boolean expressionsB3=G3, B2=B3⊕G2, B1=B2⊕G1, B0=B1⊕G0
▶ Try the interactive version