Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThe arctan() function in the library expects a real as input where Angela specified 18 bits, which I presume to be a std_logic_vector or a constrained integer type.
Second, if the compiler will synthesize the library function, we end up with combinatorial implementation which may be too slow. But the library function can do double duty: first serve as a guidance into Cordic and second to use in the testbench.