LabVIEW FPGA Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Manzolli

Default data type Fixed Point (FXP)

Status: New

In a FPGA code, when you click in a function (Math, Array or Comparison) to create the first constant, control or indicator, like in an Add function, it's created as a Double (DBL) type, which is not suitable for this target. In this case, it will be better if the data are created as a Fixed Point (FXP). In other cases, like in Array functions, an Integer (I32) may be a better option. One thing is for sure: Should not be a Double!

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
3 Comments
heel
Member

Good point. But note that floating point support in xilinx is in the pipeline: http://www.xilinx.com/products/intellectual-property/FLOATING_PT.htm. Looking forward to see it in LV-FPGA as well. But for some time this will remain the exception.

JLewis
Member

LabVIEW-FPGA floating-point support has arrived in 2012! It only supports SGL precision, so the DBL default is still unsuitable. Even if DBL was supported, it definitely wouldn't be something you would want to present as the canonical FPGA data type.

Manzolli
Active Participant

Good point JLewis. I'm posting a new idea suggesting that the default should be SGL.

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil