Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiplication on FPGA

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

0 Kudos
Message 1 of 4
(5,938 Views)

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.

Visualize the Solution

CLA

LabVIEW, LabVIEW FPGA
Message 2 of 4
(5,930 Views)

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

0 Kudos
Message 3 of 4
(5,926 Views)

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

0 Kudos
Message 4 of 4
(5,910 Views)