Forum Discussion
Altera_Forum
Honored Contributor
15 years agoOptimum way to do Count = Count + 1 Using only std_logic_1164
Hello I'm new in this forum and recently I received an assigment for my Digital Systems Class. Its common to use in C/C++ or any high level language, a notation like cont = cont + 1. But my professor...
Altera_Forum
Honored Contributor
15 years agoAn overflow detection is not necessary, because a binary 32 bit counter counts from x"FFFFFFFF" to x"00000000" on it's own. You make it count from x"FFFFFFFF" to x"00000001" which is wrong and needs more logic.