Guest
Hello all,
I am working on a design which requires an arctan to be performed in
my FPGA. I've been trying to figure out the best way to implement the
arctan as it is one of the more difficult functions to implement. It
seems to me that for smaller bit widths, the best way is to just use a
LUT approach. However, I'm having trouble figuring out the best way
to initialize the ROM.
I thought about using MATLAB to generate a package which has the
values, but this just seems clunky to me. Is there a good way to use
the ieee.math_real package to generate an array of values using the
that package's arctan function? I can't quite figure out a way to
initialize the constant array for all of the values. Any thoughts on
how to go about this? Thanks for all the help!
Regards,
John
I am working on a design which requires an arctan to be performed in
my FPGA. I've been trying to figure out the best way to implement the
arctan as it is one of the more difficult functions to implement. It
seems to me that for smaller bit widths, the best way is to just use a
LUT approach. However, I'm having trouble figuring out the best way
to initialize the ROM.
I thought about using MATLAB to generate a package which has the
values, but this just seems clunky to me. Is there a good way to use
the ieee.math_real package to generate an array of values using the
that package's arctan function? I can't quite figure out a way to
initialize the constant array for all of the values. Any thoughts on
how to go about this? Thanks for all the help!
Regards,
John