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

Programmable Divider Selector

MediumLogic CircuitBuild

Dynamic frequency scaling relies on adjusting clock speeds on the fly to balance performance and power consumption. A programmable clock divider routes a source clock through a cascade of flip-flops and selects the desired tapped frequency.

The circuit receives a source clock clk_in and a 2-bit control signal sel. It must output a divided clock clk_out according to the selected ratio.

| sel | clk_out | |-------|-----------| | 00 | clk_in / 2 | | 01 | clk_in / 4 | | 10 | clk_in / 8 | | 11 | 0 |

Constraints

  • Use D flip-flops to create the divider stages.
  • Construct a ripple divider by connecting the inverted output of each stage to the clock input of the subsequent stage.
  • Do not create combinational logic loops.
  • Clock glitching during selection transitions is acceptable for this design.

Topics

MultiplexersClockingFrequency Scaling

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