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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.