08-25-2011 07:01 AM
Hi Guys,
I want to multiply a decimal number (for ex. 0.825) with an integer number (for ex. 153) on FPGA. How can i do this ?
regards,
Mehmet
08-25-2011 08:08 AM
Do you have to perform this on the FPGA?
I suggest performing math operations in the Host code as FPGAs do NOT support Floating Point math.
If you have to perform math on the FPGA use Fixed-point math functions.
08-25-2011 08:53 AM
Hi,
I m working on FPGA ,
I must necessarily multiply floating point number with a fixed point number.
Do you have any idea?
thanks.
Mehmet
08-26-2011 07:19 AM
Hi Mehmet,
currently floating-point math is not supported in LabVIEW FPGA due to the amount of logical units that are required to implement them in hardware.
As stated previously you have to use fixed-point math to perform mathmatical operations on the FPGA using LabVIEW. The FPGA FXP math libary will provide you some functions that help you to perform the desired operation: Fixed-Point Math Library for LabVIEW FPGA
If you need to continue to process the results of the FPGA math operations on your host PC in floating point format you can consider to convert them to single precision (SGL) before transfering them to the host PC in order to save host resources. A VI offering that functionality is available here: Fixed-Point (FXP) to Single (SGL) Conversion on LabVIEW FPGA
Best regards,
Benjamin