Codiode

Minimum Pulse Width: Setup Plus Hold Constraint

HardLogic CircuitAnalyze

Synchronizing short asynchronous pulses like interrupts or button presses requires strict timing to ensure the receiving flip-flop can reliably capture the event. A signal must remain stable through a specific window of time around the clock edge to avoid metastability.

A rising-edge triggered D flip-flop receives an asynchronous data pulse on input D and is clocked by signal CLK. The flip-flop has a setup time t_setup of 2 time units and a hold time t_hold of 1 time unit. The clock period is significantly longer than the pulse width.

Evaluate the minimum pulse width required on D to prevent the pulse from being completely swallowed by the timing requirements. Identify the alignment scenarios that cause timing violations.

Constraints

  • t_setup is exactly 2 time units.
  • t_hold is exactly 1 time unit.
  • The asynchronous pulse on D arrives randomly relative to the active edge of CLK.

Topics

Setup TimeHold TimePulse WidthSynchronization

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.

Part of Latches and Flip-Flops

Problem 108 of 126 in the Latches and Flip-Flops track.

Related problems

Browse all problems · Digital logic design practice problems · Learning tracks

Solve this on a laptopSend yourself the link and continue there.