Forum Discussion
Altera_Forum
Honored Contributor
14 years agoimplementing log function in FPGA
Hi All,
I am doing a project regards to implement log function in FPGA. I am wondering where can I get 32M lookup table for log in signle precision? I tried to generate it from GCC, but unfortunately a lot of table items were wrong when I compare them with those generated from tubor C. Dose anybody know the reason? and where can I get a correct one? Many thanks indeed!1 Reply
- Altera_Forum
Honored Contributor
If there was slight variance between the results then that would be expected since IEEE 754 is loose when it comes to accuracy. For example the results of an Intel processor will differ from say a PowerPC for simple floating point operations let alone a more complicated one like log(). What archeticture were you generating the log table from?