← ProblemsCircuits / Sequential Logic / Latches and Flip-Flops

Detect an edge

36%edge-detectionflip-flopsvectors

For each bit of an 8-bit input vector, detect when the signal changes from 0 in one clock cycle to 1 in the next (like a synchronous rising-edge detector).

The output bit pedge[i] must be 1 in the cycle after in[i] makes a 0→1 transition, and 0 otherwise. Each detected edge produces a single-cycle pulse.