Share Floating-Point IPs

This parameter resides in the HDL Code Generation > Optimization > Resource Sharing tab of the Configuration Parameters dialog box. Use this parameter to share floating-point IP blocks in the target hardware with the resource sharing optimization.

Settings

Default: On

On

When you enable resource sharing, HDL Coder™ shares floating-point IP blocks.

Off

Do not share floating-point IP blocks.

Dependency

To share floating-point IPs:

  • In the HDL Block Properties for the parent DUT Subsystem, specify the SharingFactor. The number of floating-point IP blocks that get shared depends on the SharingFactor that you specify for the subsystem.

  • In the HDL Code Generation > Global Settings > Floating Point Target tab, set the Floating Point IP Library to a value other than None.

Command-Line Information

Property: ShareFloatingPointIP
Type: character vector
Value: 'on' | 'off'
Default: 'on'

To set this property, use hdlset_param or makehdl. To view the property value, use hdlget_param.

For example, you can use the ShareFloatingPointIP setting when you generate HDL code for the symmetric_fir subsystem inside the sfir_fixed model using either of these methods.

  • Pass the property as an argument to the makehdl function.

    makehdl('sfir_fixed/symmetric_fir', ... 
            'ShareFloatingPointIP','on')
  • When you use hdlset_param, you can set the parameter on the model and then generate HDL code using makehdl.

    hdlset_param('sfir_fixed','ShareFloatingPointIP','on')
    makehdl('sfir_fixed/symmetric_fir')

See Also