Codiode

Basic Rising Edge Detector

EasyLogic CircuitBuildFree

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.

Free to solve. A Codiode account keeps your progress.

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 Interface and Communication Circuits

Problem 1 of 79 in the Interface and Communication Circuits track.

Related problems

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

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