CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Sequential Logic

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.

Sign in to solveSee what Pro unlocks

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.

Related problems

  • 3-bit Ripple Counter from Toggle Flip-FlopsEasy
  • D Latch from a 2:1 MUXEasy
  • 2-bit Ring CounterEasy
  • T Flip-Flop from a D Flip-FlopEasy
  • Handshake Deadlock Due to Early ResetHard
  • Reconvergence of Individually Synchronized BitsHard
  • Debug: Asynchronous Clear GlitchHard
  • Clock Gate Enable Crossing DomainsHard

Browse all problems · Learning tracks