S3 Digital design with HDL · Practice
Clock domain crossing
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
Check
A synchronizer allows 600 ps of settling, with τ = 15 ps, = 20 ps, a 1500 MHz clock and data at 200 MHz. What's its MTBF?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
By what factor does a second synchronizer flip-flop improve the MTBF at 1000 MHz, with τ = 15 ps?
Check
A crossing must reach an MTBF of 1000 years, with τ = 15 ps, = 20 ps, a 2000 MHz clock and data at 100 MHz. How much settling time must the synchronizer allow?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A level from another domain must be caught by a 500 MHz clock whose flip-flops need a 30 ps setup-and-hold window. How long must the level be held to guarantee at least one clean sample?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
In a req/ack handshake, the request crosses a 2-flop synchronizer into a 100 MHz domain, which takes one more cycle to capture the data and raise acknowledge. The acknowledge crosses a 3-flop synchronizer back into a 400 MHz domain, which takes one more cycle to see it. Counting whole cycles, how long does one transfer take?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A 4-bit binary counter counts through a full cycle: increments, including the wrap back to zero. How many bit changes does it make in total?
Check
A synchronizer flip-flop on a 1 GHz clock has τ = = 30 ps and samples data changing at 10 MHz; each stage leaves its period less 100 ps for resolution.
(a)
What is the MTBF with one stage?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
And with two stages?
Check
MTBF: 400 ps settling, τ 20 ps, 1200 MHz clock, 150 MHz data?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Improvement from one more flop at 700 MHz, τ = 18 ps?
Check
Handshake transfer time: request through 2 flops at 125 MHz plus a cycle, acknowledge through 3 flops at 200 MHz plus a cycle?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in S3