Glossary

Gray code

A binary encoding in which consecutive values differ in exactly one bit. Gray-coded counters can cross clock domains safely because a sample taken during a change is either the old or the new value.

Learn it in depthClock domain crossing: synchronisers, Gray code, FIFOsMove signals safely between FPGA clock domains: metastability and MTBF, two-flop synchronisers, pulse and handshake crossings, async FIFOs, resets, constraints.

Related terms

← All glossary terms