Main Content

Multiplier sharing minimum bitwidth

Specify the minimum bit width that is required to share multipliers with the resource sharing optimization

Model Configuration Pane: Optimization / Resource sharing

Description

Use this parameter to specify the minimum bit width that is required to share multipliers with the resource sharing optimization.

Dependencies

To share multipliers in your design:

  • In the Resource Sharing tab, make sure that the Multipliers check box is selected.

  • In the HDL Block Properties for the DUT Subsystem, specify the SharingFactor.

Settings

0 (default)
0, 1

No minimum bit width for shared multipliers.

N, where N is an integer greater than 1

When resource sharing and multiplier sharing are enabled, share multipliers with a bit width greater than or equal to N.

Tips

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

For example, you can use the MultiplierSharingMinimumBitwidth 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', ... 
            'MultiplierSharingMinimumBitwidth',16)
  • When you use hdlset_param, you can set the parameter on the model and then generate HDL code using makehdl.

    hdlset_param('sfir_fixed','MultiplierSharingMinimumBitwidth',16)
    makehdl('sfir_fixed/symmetric_fir')

Recommended Settings

No recommendations.

Programmatic Use

Parameter: MultiplierSharingMinimumBitwidth
Type: integer
Value: integer greater than or equal to 0
Default: 0

Version History

Introduced in R2015a