Home / Learn Verilog / Common CDC Bugs

Common CDC Bugs

What goes wrong.

In shortWhat goes wrong.

What's actually going on

Bug listdirect use of other-domain signalmulti-bit bus through 2FFlogic before the synchronizerreset released asynchronously
Bug list

What it is

Typical bugs: unsynchronised signals, multi-bit buses sampled with 2FF, combinational logic before a synchronizer, reconvergent paths.

Why it matters

CDC bugs appear only in hardware, rarely in simulation.

Mechanically speaking

Use CDC lint tools and review every crossing.

Shows up in

  • Everyday RTL design
  • FPGA and ASIC projects
  • Testbenches and debugging

Try it

Bus sampled mid-changeVerilog: edit and run

Multi-bit changes are not atomic. Use gray code or a handshake.

Check yourself

1. Why are multi-bit buses unsafe through 2FF?