Board logo

标题: [求助]请问如何用FPGA实现log运算? [打印本页]

作者: ssln    时间: 2007-8-30 16:32     标题: [求助]请问如何用FPGA实现log运算?

rt

请各位帮忙,在线等待!


作者: caopengly    时间: 2007-8-30 19:51

A normaliser counts leading zeros and extracts the mantissa,
so giving the logarithm to within 6dB. Typically you can
then do table lookup on the top few bits of the normalised
result, to get some more accuracy.

Obviously, it depends on the precision you need.

Standard methods such as Taylor series and CORDIC may also
be useful if you want really high precision. Once again,
it's MUCH easier if you normalise the number first, so that
you only need to find the log of a number in the range
0.5 to 1.0
--

这是一位老外曾经回答的,因为要log,就要用浮点运算,其运算量是很大的。建议还是查表。


作者: storm-liu    时间: 2007-9-9 20:34

CORDIC算法好像有对数函数的实现方法,建议看看相关资料




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0