Asynchronous FIFO for crossing clock domains
Design a FIFO whose write and read sides run on different clocks, using Gray-code pointers and synchronisers, the standard way real chips pass data between clock domains.
What this proves to recruiters
- You understand metastability and clock domain crossing.
- You know a design pattern used in almost every SoC.
- You can reason about corner cases like full and empty.
Skills you will use
- Clock domain crossing
- Gray code
- Verilog
- Verification
What you need
Nothing to buy: this project only needs a computer and the free software below.
Free software
- Icarus Verilog or Verilator
- GTKWave
Steps
- Read Cliff Cummings’ paper on asynchronous FIFO design (free online). It is the classic reference.
- Build a dual-port memory with separate write and read clocks.
- Keep binary pointers on each side, and convert them to Gray code before crossing.
- Pass each Gray pointer through two flip-flops in the other clock domain.
- Compute full on the write side and empty on the read side from the synchronised pointers.
- Test with unrelated clocks (for example 50 MHz and 33 MHz) and random bursts; check nothing is lost or repeated.
Make it stand out
- Add almost-full and almost-empty flags.
- Prove “never overflows” with formal verification.
Put it on your resume
Designed an asynchronous FIFO with Gray-code pointer synchronisation; verified with randomised traffic across unrelated clocks.
Replace each [x] with a number you measured. Real numbers make a line believable.
Keep going
This project fits stage 4, “Synthesis, FPGA and tapeout”, of the RTL and digital design roadmap. See also how freshers get into FPGA design engineer jobs.