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

Clock Divider Metastability

HardLogic CircuitAnalyze

Ripple counters consume very little power but introduce significant timing risks when interfacing with synchronous logic. The circuit below features a primary clock CLK operating at 125 MHz. CLK drives the clock pin of FF0. The output of FF0 clocks FF1, and the output of FF1 clocks FF2, forming a three-stage ripple counter. The final stage FF2 generates a signal DATA_OUT that is sampled by FF3, which operates directly on the primary CLK domain. All flip-flops share identical characteristics: a clock-to-Q delay of 2.5ns and a setup time of 1.0ns. Trace the cumulative delay through the ripple stages and determine the timing margins at FF3.

Constraints

  • CLK frequency is 125 MHz.
  • Clock-to-Q delay is 2.5ns for all flip-flops.
  • Setup time is 1.0ns for all flip-flops.
  • Combinational delay between all stages is 0ns.

Topics

ripple-countertiming-analysisclock-skewsetup-violation

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

  • Binary to HexEasy
  • 1-to-4 Demultiplexer from AND and NOT GatesEasy
  • 2-to-4 Line Decoder with Active-High EnableEasy
  • Hex Nibble to BinaryEasy
  • Odd Parity Bit Generator for 3-bit DataEasy
  • Full Adder from Half AddersEasy
  • Modulo ArithmeticMedium
  • Two's Complement: Encode a Negative DecimalEasy

Browse all problems · Learning tracks