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

Clock Gate Enable Crossing Domains

HardLogic CircuitDebug

A power management controller generates an enable signal pm_en in a slow clock domain to gate a high-speed core clock clk_fast.

Expected behavior:

The gated clock clk_gated must cleanly pass clk_fast pulses when the power management enable is active. The enable signal must safely cross into the high-speed domain to avoid setup and hold violations at the clock gating cell.

Simulation shows that clk_gated exhibits a glitch when pm_en transitions from 1 to 0. Timing analysis reports a setup time violation at the latch inside the integrated clock gating cell. Inspect the circuit and correct the fault.

Constraints

  • Do not modify the internal structure of the integrated clock gating (ICG) cell itself.
  • Use standard D-type flip-flops to build the required synchronization logic.
  • The synchronized enable signal must drive the existing clock gating cell.

Topics

Clock Domain CrossingSynchronizationClock GatingGlitch Prevention

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
  • Reconvergence of Individually Synchronized BitsHard
  • FIFO Empty Logic Evaluated in Wrong DomainMedium
  • Debug: Asynchronous Clear GlitchHard
  • Handshake Deadlock Due to Early ResetHard

Browse all problems · Learning tracks