Closed-Loop MUX Synchronizer
Multi-bit binary data like performance counters or memory addresses cannot be passed across asynchronous clock domains using simple flip-flops due to bus skew. A closed-loop MUX synchronizer safely transfers arbitrary data by freezing the source, signaling the destination, and waiting for an acknowledgment.
When req_a asserts and busy_a is 0:
- Latch the 8-bit
data_ainto a holding register and assertbusy_a. - Toggle a control signal and synchronize it to
clk_busing a 2-FF synchronizer. - When the synchronized signal toggles in domain B, capture the holding register into
data_band assertvalid_bfor exactly oneclk_bcycle. - Synchronize the domain B control signal back to
clk_a. - When the acknowledgment arrives in domain A, deassert
busy_a.
Constraints
- Use standard D flip-flops and logic gates only.
- Do not route the multi-bit data bus through a synchronizer chain.
busy_amust remain high until the acknowledgment is received from domain B.
Topics
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.
Related problems
Browse all problems · Digital logic design practice problems · Learning tracks