Altera_Forum
Honored Contributor
10 years agoPercentage calculation in VHDL
Hi All,
I am using MAX10 FPGA and need to calculate percentage. My data is 12 bit long. So I take the data, divide it by 100 by using the LPM_DIVIDE IP. I take the Quotient and multiply it to the desired percentage factor through LPM_MULTIPLIER. But LPM_DIVIDE IP produces Quotient and remainder. I am taking Quotient only that's why I am unable to get accurate results. So my question is that how should I use remainder to produce more accurate results. Thanks Regards USMAN