Asynchronous FIFO Design: Gray Pointers, Synchronizers and Safe Flags (FIFO Series, Part 2)
Part 1 built a FIFO where the writer and the reader share one clock. Real chips are rarely that tidy. A PCIe controller runs on a clock recovered from its link, a DMA engine on the fabric clock, a sensor interface on whatever the sensor provides. Wherever two clock domains exchange a stream of data, there is almost always an asynchronous FIFO between them, and it is one of the few places where a small design mistake can pass every simulation an…
