Main Content

Floating Point IP Library

This parameter resides in the HDL Code Generation > Floating Point pane of the Configuration Parameters dialog box. Use this parameter to specify the floating-point target library.

Settings

Default: NONE

The options are:

None

Select this option if you do not want the design to map to floating-point target libraries.

Native Floating Point

Specify native floating-point as the library. You can specify the latency strategy and whether to handle denormal numbers in your design.

Altera Megafunctions (ALTERA FP FUNCTIONS)

Specify Altera® Megafunctions (ALTERA FP FUNCTIONS) as the floating-point target library. You can provide the IP Target frequency.

Altera Megafunctions (ALTFP)

Specify Altera Megafunctions (ALTFP) as the floating-point target library. You can provide the objective and latency strategy for the IP.

Xilinx LogiCORE

Specify Xilinx® LogiCORE® as the floating-point target library. You can provide the objective and latency strategy for the IP.

Command-Line Information

To set the floating-point library:

  1. Create a floating-point target configuration object for the floating-point library. This example shows how to create an hdlcoder.FloatingPointTargetConfig object for the Native Floating Point library:

    fpconfig = hdlcoder.createFloatingPointTargetConfig('NativeFloatingPoint');

  2. Set the floating-point target configuration on the model and then generate HDL code. This example shows how to set the configuration on the sfir_single model and generate HDL code for the symmetric_fir subsystem:

    hdlset_param('sfir_single','FloatingPointTargetConfig',fpconfig)
    makehdl('sfir_single/symmetric_fir')

See Also