4 ms·
The usual way is simply with an else statement, so the reader can follow the logic: if (cnt > 100) cnt <= 0; else cnt <= cnt + 1;
by alain94040 8y ago
The usual way is simply with an else statement, so the reader can follow the logic:
if (cnt > 100)
cnt <= 0;
else
cnt <= cnt + 1;