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 agoThanks every one for your fast answers.
Hello Tricky, thanks for your assistance and its good for me that you "being a pedant" :cool:, I here for learning . And yes, I'm was mistaken about that library. When I put the second code with the 32-bit full adder is because at that moment I already had the instantiations in the coponent fullAdder32, and it is built of single full adders that are built from half adder components. Mi problem is that I really don't know how to use that in oder to achieve de classic "something = something + 1" since when i use the "f0 : fullAdder32 port map(a, b, sum, carry) its already running while the process that compare the current sum if its overflow thate the current sum. What I need to do change the "classic" with fulladders? Or there is another way to perform it with out the "+" sign and about the loop, does it takes more resources?