Forum Discussion
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