Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COS & SIN functions in VHDL

Status
Not open for further replies.

avib

Technical User
Apr 30, 2002
27
IL
Hi,

Does anybody know how to implement cos/sin functions in VHDL.
Or even better, is there any on the shelf IEEE cos/sin functions?

Thanks
 
There is an ieee math_real package that seems to have COS/SIN functions. I have never used it, but Im sure it works ok. Not sure if its synthesizable or behavioural only.

--
 
for synthesizing trigonometric functions, there are two ways. the first is large-enough lookup tables (if it doesn't get too big). The second is algorithms named CORDIC. I have read about it, but don't know it exactly. However I know it works, and is reasonable. It could be pipelined or iterated.
 
Thanks for your replies!

The reason I need these functions is that I need to implement conversion from Polar form to Rectangular form in FPGA (for Image processing)

I downloaded a CORDIC core from the opencores wesite but the Polar form to Rectangular is not implemented there yet (only Rectangular to Polar).

Please help!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top