ECEdge

Exam: GATE 2027 exams are on 6, 7, 13, 14, 20 and 21 February 2027. Official GATE 2027 site

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

Gray code: one bit changes per stepassign wgray = wbin ^ (wbin >> 1);// two flip-flops in the read clock domainalways @(posedge rclk) begin wg_s1 <= wgray; wg_s2 <= wg_s1;endbin 0011 → gray 0010bin 0100 → gray 0110
Because only one bit changes at a time, a pointer can never be read half-updated.

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

  1. Read Cliff Cummings’ paper on asynchronous FIFO design (free online). It is the classic reference.
  2. Build a dual-port memory with separate write and read clocks.
  3. Keep binary pointers on each side, and convert them to Gray code before crossing.
  4. Pass each Gray pointer through two flip-flops in the other clock domain.
  5. Compute full on the write side and empty on the read side from the synchronised pointers.
  6. 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.

More RTL and digital design projects

All 49 project ideas