Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

implementing 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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?