Multiply-Add block sharing minimum bitwidth
Specify the minimum bit width that is required to share Multiply-Add with the resource sharing optimization
Since R2021a
Model Configuration Pane: Optimization / Resource sharing
Description
Use this parameter to specify the minimum bit width that is required to share Multiply-Add with the resource sharing optimization.
Dependencies
To share Multiply-Add blocks in your design:
In the Resource Sharing tab, make sure that the Multiply-Add blocks 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 Multiply-Add blocks.
- N, where N is an integer greater than 1
When resource sharing and Multiply-Add block sharing are enabled, share Multiply-Add blocks 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 MultiplierAddSharingMinimumBitwidth 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
makehdlfunction.makehdl('sfir_fixed/symmetric_fir', ... 'MultiplierAddSharingMinimumBitwidth',16)
When you use
hdlset_param, you can set the parameter on the model and then generate HDL code usingmakehdl.hdlset_param('sfir_fixed',MultiplierAddSharingMinimumBitwidth',16) makehdl('sfir_fixed/symmetric_fir')
Recommended Settings
No recommendations.
Programmatic Use
Parameter: MultiplierAddSharingMinimumBitwidth |
| Type: integer |
| Value: integer greater than or equal to 0 |
| Default: 0 |
Version History
Introduced in R2021a