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

Rising Edge to Single Cycle Pulse

EasyLogic CircuitBuild

Synchronous state machines often require single-cycle pulses to trigger state transitions rather than responding to held logic levels. The edge detector circuit converts a sustained input level change into a precise one-clock-cycle pulse.

The circuit receives a clock signal clk and an input signal din. When din transitions from 0 to 1, the output pulse must assert for exactly one clock cycle. If din remains high for multiple cycles, pulse must return to 0 after the first cycle.

| Cycle | din | pulse | |-------|-------|---------| | 0 | 0 | 0 | | 1 | 1 | 1 | | 2 | 1 | 0 | | 3 | 0 | 0 | | 4 | 0 | 0 |

Constraints

  • Use exactly one D flip-flop.
  • Use standard combinational logic gates to detect the transition.
  • The circuit must be fully synchronous to the clock.

Topics

ClockingEdge DetectionPulse Generation

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