Altera_Forum
Honored Contributor
15 years agoAbsolute Value and Square Root implementations in fixed point
Hi,
I know that there exists a MegaFunction for absolute value in floating point. But I am looking for an implementation to get the absolute value/modulus in fixed point. Another implementation I could go with is to use the altmult_add megafunction and then square root the result. But the problem is similar - Quartus 10.1 has a square root function for floating point only, and I want it for fixed point implementation as I will be needing it for a bigger design on the FPGA. Can anyone please help me getting either a square root implementation for fixed point, and/or an absolute value/modulus implementation? Thank you. :)