Forum Discussion
JRome28
New Contributor
6 years agoLearning to use Fixed-point Arithmetic in Intel FPGAs with OpenCL
Hi. I am not sure if this forum is the appropriate for this issue but I have not found the correct one. Reading the "Intel FPGA SDK for OpenCL Pro Edition: Best Practices Guide", at page 100 we can ...
AnilErinch_A_Intel
Frequent Contributor
6 years agoHi
There are multiple steps which can be used to covert from floating point to fixed point. The things to note is whether your specific application is keen about the resolutions. As precision can be compromised when converting from floating point to fixed point data type. Intel FPGA SDK compiler supports OpenCL version 1.0 the following strategies can be used to convert from floating point to fixed
Please refer to section "6.2 Conversions and Type Casting" in the OpenCL specification from available documentation to be downloaded from the khronos group website
https://www.khronos.org/registry/OpenCL/specs/opencl-1.0.pdf
Regarding limiting size of fixed point data to the required bit field widths , please make use of bit masking effectively
as per the requirements of the program. An example for the same is given in the page 101 of the same document you mentioned.
Hope this helps ,
Thanks and Regards
Anil