Altera_Forum
Honored Contributor
13 years agoArithmetics in VHDL
Hi,
I need to implement some arithmetic functions in an FPGA (which I never done before) and I have a few questions. I'm currently using a Cyclone IV E dev kit, the actual design will use either Cyclone IV E or Cyclone V E. 1. Sine/Cosine - is it better to use Altera's megafunctions, look-up tables or any other method? 2. Tangent - is there a megafunction for that or should I just divide the sine/cosine outputs? 3. When using Altera's megafunctions how can I know that the output is ready? I couldn't find any "result ready" flag or anything similar. 4. I need to implement a power function (x^y) while both x and y can be floating point numbers - how should I do that? Thanks in advance