Forum Discussion
Altera_Forum
Honored Contributor
10 years agoQuartus really does not support the system function based on my previous experience. I did few simple mathematic tricks in my coding to get the ceil function but not applicable to your case. So, you can try and verify the suggestion below as workaround.
1) Put result ( SUMM1 + SUMM2 - SUMM3) * CLK_FREQUENCY) into real parameter => parameter real real_result = (( SUMM1 + SUMM2 - SUMM3) * CLK_FREQUENCY)); 2) Put result ( SUMM1 + SUMM2 - SUMM3) * CLK_FREQUENCY) into integer parameter => parameter integer int_result = (( SUMM1 + SUMM2 - SUMM3) * CLK_FREQUENCY)); 3) Check whether "real_result" variable larger than "int_result" variable 4) If steps is true , then add 1 value into the "int_result" variable