Forum Discussion
Altera_Forum
Honored Contributor
18 years agoHello plasma16!
Thanks for your answer. You are right, it is very hard for me to write "real" vhdl code, as I come from normal software languages. I have to work on that in the future. For now, I solved the problem by checking the counter4-value-changes if they were valid changes or not. If they were invalid, i undo the change by overwriting the new value with a backup of the old value. I know, that this is an unpleasent solution, but I do not know how to help myself anymore. That this "solution" does work shows me, that each time a binary 01001 should be in the temp_type signal it is actually a binary 01000. I don't have a clue why, because the only place I touch the temp_type signal is shown in the code example. I NEVER erase the LSB of temp_value . . . . and it is never erased in the case of e.g. binary 00111, 01011 or 01101 as the counters who increment on these temp_type values always behave as expected. They NEVER count wrong. Okay, thanks anyway for trying to help me! In my next project I hope my vhdl style will improve a little bit ;) . Greets, Maik