fanwel
Full Member level 3
Hi all;
I want to write vhdl code for (A+B)/2 algorithm and will implement it in FPGA.
My input is an integer and this algorithm operates continuously with the next stage. For example:
1stage: (3+2)/2=2.5, (3+1)/2=2
2stage: (2.5+2)/2=2.25
The operation requires an integer number and also floating number. My question is which Megafunction tools are better to used: lpm_divider or altfp_div?
Need advise,thank you.
I want to write vhdl code for (A+B)/2 algorithm and will implement it in FPGA.
My input is an integer and this algorithm operates continuously with the next stage. For example:
1stage: (3+2)/2=2.5, (3+1)/2=2
2stage: (2.5+2)/2=2.25
The operation requires an integer number and also floating number. My question is which Megafunction tools are better to used: lpm_divider or altfp_div?
Need advise,thank you.