RTL Design · Hard · SystemVerilog

Integrate the Asynchronous FIFO

Combine memory, pointers, Gray conversion, synchronization, and status detection into a complete dual-clock FIFO.

Task

Build the top-level asynchronous FIFO. Keep write logic in `wclk`, read logic in `rclk`, synchronize only Gray pointers across domains, and use the binary low bits to address memory.

Examples

Constraints

What this problem is testing

A strong answer translates the requirement into synthesizable state and combinational logic, states reset and update semantics precisely, and handles boundary conditions rather than only the nominal case.

Interview habit: before coding, state reset behavior, the state that must be stored, and the conditions that update each output.

Verification plan

Edge cases worth testing

Common mistakes

Interview follow-up questions

Concepts to review

FIFO, CDC, integration

Open Integrate the Asynchronous FIFO in the HDLForge interactive editor.

Related problems

Explore the RTL Design Practice & Interview Preparation hub.

Continue practising