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

Basic Rising Edge Detector

EasyLogic CircuitBuild

Raw external signals must be converted to single cycle pulses to trigger internal state machines reliably. This prevents long-held inputs from causing multiple unintended state transitions.

The circuit monitors a synchronous input din and generates a single-cycle high pulse on pulse_out immediately following a 0 to 1 transition. The output must remain high for exactly one clock cycle, regardless of how long din remains high.

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

Constraints

  • Use a D flip-flop to store the state of the input from the previous clock cycle.
  • Implement an active-high synchronous reset using the rst signal.
  • Clear all internal state to 0 when rst is high.
  • Generate pulse_out using combinational logic based on the current input and the stored previous input.

Topics

sequentialedge-detectorsynchronous

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