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

MUX Based Data Synchronization with Enable

MediumLogic CircuitBuild

Arbitrary multi-bit data cannot safely cross clock domains using standard synchronizers due to routing skew. Instead, a control signal is synchronized to the destination clock domain and used to enable the capture of the stable data bus.

The circuit must transfer an 8-bit data_in bus into a destination domain. The control signal en_a indicates that data is ready on the source side. Synchronize en_a into the destination domain using a two-stage flip-flop synchronizer to produce en_b. Route data_in directly to an 8-bit register. Use en_b to enable this register.

| en_b | data_out (next state) | |--------|-------------------------| | 0 | data_out (hold) | | 1 | data_in |

Constraints

  • Use exactly two D flip-flops to synchronize en_a.
  • Use an 8-bit register with a multiplexer or clock enable for the data path.
  • Do not place synchronization logic on the data_in bus.
  • All sequential elements must be synchronously reset by rst_b.

Topics

RegistersSynchronizationClockingData Path

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