Home / Learn Verilog / Async FIFO with Gray Pointers
Async FIFO with Gray Pointers
The full solution.
The gistThe full solution.
The idea, explained simply
The basic idea
Dual-port RAM plus gray-coded pointers synchronised into the other domain.
Why this comes up
Streaming data across clocks.
The mechanics
Compare synchronised gray pointers for full and empty.
Where it is used
- Everyday RTL design
- FPGA and ASIC projects
- Testbenches and debugging
Try it
Async FIFO testVerilog: edit and run
Data written at one rate is read at another.
Quick check
1. Pointers cross as...
Single-bit changes.