Concept Flow - Modulo-N counter
Start: counter = 0
Increment counter by 1
Check if counter == N-1?
Yes→Reset counter to 0
No
Output current counter value
Repeat on next clock cycle
The counter starts at 0, increments by 1 each clock cycle, resets to 0 when it reaches N-1, and outputs the current value.
