EmbDev.net

Forum: FPGA, VHDL & Verilog Trigonometric functions


Author: jeorges FrenchRivera (Company: xlue) (khal1985)
Posted on:

Rate this post
0 useful
not useful
Hello all,

I want to implement some trigonometric functions such as sinus, cosinus, 
tan and arctan. So my question is what's be best way to do that?
I can't find a concrete example of how this kind of function. Can you 
give me please some links or samples to start?
Thanks for any help.
Best regards

Author: Lattice User (Guest)
Posted on:

Rate this post
0 useful
not useful
Search for CORDIC

Author: Alexander S. (alesi)
Posted on:

Rate this post
0 useful
not useful

Author: jeorges FrenchRivera (Company: xlue) (khal1985)
Posted on:

Rate this post
0 useful
not useful
Thank you for you replies.

Author: Verilogi (Guest)
Posted on:

Rate this post
0 useful
not useful
easy sinodial wave can be implemented also with tables. this is more 
quicker, is precision is needed, do the table first and look into it

Author: D3XT3R (Guest)
Posted on:

Rate this post
0 useful
not useful
the best way to solve this depends on the accuracy you want to achieve.
You cant just implement a LUT for every function without extra RAM/ROM.
If i would be you, i would use CORDIC. But be careful, for arcsin such 
as arcos you will need double rotation CORDIC because. A recommend 
andrakas "A survey of Cordic" for better understanding of CORDIC

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.