Forum Discussion
Altera_Forum
Honored Contributor
11 years agosystem verilog system functions in quartus integrated Synthesis
Is there ability to use sv system function such as $ceil, $pow etc to caluculate module parameters (localparmeters)? For example something like that parameter integer N_COEFF_ACCUM =($ceil(( SU...
Altera_Forum
Honored Contributor
11 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