Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21607 Discussions

Arithmetic operation log

Altera_Forum
Honored Contributor II
1,265 Views

Please, i need to calculate this function (X²)(Z=2) with vhdl language and Z it is real number. There are two maners: calculate it directly or applicate the log10 function. how can i resolve this problem. 

Thinks
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
554 Views

I would say the best way is to use a NIOS. 

Did you find any log10 IP core ?
0 Kudos
Altera_Forum
Honored Contributor II
554 Views

I use nios II, but he need many time to calculate the value. for exemple i find that it need's about 0.5 seconde to calculate 1000 result. But in my application, this time is greatest. For this reason i decide to change this function in vhdl to will be fast. 

For this reason i search how i implement my function in vhdl(component), to will be more fast that the software solution.
0 Kudos
Altera_Forum
Honored Contributor II
554 Views

if Z is a real number (ie floating point) dont expect it to be any quicker in an FPGA. I dont quite understand the function thouhg. What is Z=2 meant to mean?

0 Kudos
Reply