Codiode
All tracks
RTL · Advanced

Clock Domain Crossing and Synchronization

Handle multi-clock designs safely. Build synchronizers, async FIFOs and reset circuits that survive real silicon.

PrerequisitesSequential RTL
What you will learn

CDC bugs are silent in simulation but catastrophic in silicon. This track covers:

  • 2-FF synchronizer and why one FF is insufficient
  • Pulse synchronizer (handshake-based)
  • Gray code counter for CDC-safe multi-bit transfer
  • Async FIFO with Gray-coded read/write pointers
  • Clock divider: divide by 2, 4 and N
  • Clock gating cell, reset synchronizer and glitch-free clock mux
36 problems
01Two-Flop SynchronizerRTL10 GE02Asynchronous Assertion and Synchronous DeassertionRTL15 GE03Reset Synchronizer TreeRTL15 GE04Coordinated Reset SequenceRTL25 GE05Divide by Two Clock GeneratorRTL10 GE06Divide by Three with 50% Duty CycleRTL25 GE07Divide by Even N with 50% Duty CycleRTL15 GE08Latch-Based Clock Gating CellRTL15 GE09Glitch Free Clock MultiplexerRTL25 GE10The Glitchy Clock MultiplexerRTL25 GE11Clock Enable GeneratorRTL15 GE12Full Four Phase Handshake ProtocolRTL25 GE13Two Phase Handshake ProtocolRTL25 GE14Valid and Acknowledge Data SynchronizerRTL15 GE15Binary to Gray Code DatapathRTL10 GE16Parameterized Gray Code CounterRTL15 GE17Multi-Bit Crossing Using Holding RegisterRTL15 GE18Asynchronous FIFO Memory ArrayRTL15 GE19Read Pointer Generation and Gray ConversionRTL15 GE20Synchronizing Read Pointer to Write DomainRTL15 GE21Synchronizing Write Pointer to Read DomainRTL15 GE22FIFO Full Condition LogicRTL25 GE23FIFO Empty Condition LogicRTL25 GE24Almost Full and Almost Empty FlagsRTL25 GE25Asynchronous FIFO with Asymmetric WidthsRTL25 GE26Parameterizable Depth Asynchronous FIFORTL25 GE27Data Multiplexer SynchronizationRTL25 GE28Multi Clock Domain Reset SequencerRTL25 GE29FIFO Simultaneous Read Write when FullRTL25 GE30Phase Aligned Clock Domain CrossingRTL25 GE31Glitch Filtering on Asynchronous InputsRTL15 GE32Write Pointer Generation and Gray ConversionRTL15 GE33Clock Domain Crossing with Valid and ReadyRTL25 GE34Fast to Slow Domain Pulse SynchronizerRTL25 GE35Shift Register Based Delay Line CrossingRTL15 GE36Detecting Clock LossRTL25 GE