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

Setup and Hold Time Windows: Waveform Annotation

EasyLogic CircuitTiming Diagram

A timing violation detector evaluates the stability of input D relative to the positive edge of CLK.

Three signals are shown: CLK (clock, rising edge at t=10), D (data input), and ERR (violation output, initially 0). The target flip-flop has a setup time of 3 time steps and a hold time of 2 time steps.

Trace ERR across all 16 time steps: set ERR to 1 only at the exact time steps where D changes state within the setup window (t=7 through t=9) or the hold window (t=10 through t=11).

Constraints

  • ERR is evaluated at each time step independently and does not hold its value.
  • A transition occurs at the exact time step where the D value differs from the previous time step.

Topics

timing-analysislatches-and-flip-flopssetup-and-hold

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