Codiode

Standard Dual Flip Flop Synchronizer

EasyLogic CircuitBuild

Every asynchronous signal entering a digital system must be synchronized to the local clock domain to prevent metastability from propagating. The dual flip-flop synchronizer is the standard primitive for safely crossing single-bit control signals into a new clock domain.

The circuit captures the incoming async_in signal and delays it by two clock cycles of the destination clock clk. An active-low asynchronous reset rst_n clears all internal state immediately.

rst_n clk async_in Internal Stage sync_out
0 X X 0 0
1 ↑ 0 0 Previous Internal
1 ↑ 1 1 Previous Internal
1 0/1 X No Change No Change

Constraints

  • Use exactly two D flip-flops.
  • Connect the destination clock clk directly to the clock pins of both flip-flops.
  • Route the active-low reset rst_n directly to the asynchronous reset pins of both flip-flops.
  • Do not place any combinational logic between the two flip-flop stages.

Topics

flip-flopclockingsynchronizercdc

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Part of Clocking and Synchronization

Problem 45 of 85 in the Clocking and Synchronization track.

Related problems

Browse all problems · Digital logic design practice problems · Learning tracks

Solve this on a laptopSend yourself the link and continue there.