E
Eli Bendersky
Guest
Hello All,
I have to do some signed arithmetic computations in my code and I'm
wondering which is the better approach. The operations I need are
addition, subtraction, multiplication and comparison. The two choices I
have are:
1) Use the VHDL signed arithmetic library. The advantage of this method
is its portability
2) Use the Altera LPMs (megafunctions). These are not portable, but
rather Altera specific (OTOH, all I need is Altera), but are
recommended by Altera and I can clearly see that they are
synthesizable.
What would you recommend ? Are the VHDL signed arithmetic operations
(especially multiplication) correctly synthesizable on Altera ?
How would you go about writing a computation, of say RMS (square root
excluded) ?
Thanks in advance
I have to do some signed arithmetic computations in my code and I'm
wondering which is the better approach. The operations I need are
addition, subtraction, multiplication and comparison. The two choices I
have are:
1) Use the VHDL signed arithmetic library. The advantage of this method
is its portability
2) Use the Altera LPMs (megafunctions). These are not portable, but
rather Altera specific (OTOH, all I need is Altera), but are
recommended by Altera and I can clearly see that they are
synthesizable.
What would you recommend ? Are the VHDL signed arithmetic operations
(especially multiplication) correctly synthesizable on Altera ?
How would you go about writing a computation, of say RMS (square root
excluded) ?
Thanks in advance