DigiFlop

A single 1 bit chases itself around a loop of flip-flops.

Verilog Coding Exercise · Sequential
Ring Counter
A single 1 bit chases itself around a loop of flip-flops.

Shifts a single active bit through a loop of flip-flops, feeding the last stage's output back to the first — an N-flop ring counter has exactly N valid states.

▶ Try the interactive version