Forum Discussion
Altera_Forum
Honored Contributor
16 years agoAs all your multiplications are with constant values, the compiler may be performing them at compile time and optimizing away the actual multiplication.
If that is the case, try declaring your variables "volatile" which should prevent the compiler from optimizing away the multiplications.