Adder sharing minimum bitwidth - Specify the minimum bit width that is required to share adders with the resource sharing optimization - MATLAB (original) (raw)
Main Content
Specify the minimum bit width that is required to share adders 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 adders with the resource sharing optimization.
Dependencies
To share adders in your design:
- In the Resource Sharing tab, enable the Adders setting.
- In the HDL Block Properties for the DUT Subsystem, specify the SharingFactor.
Settings
0
(default)
0, 1
No minimum bit width for shared adders.
N, where N is an integer greater than 1
When resource sharing and adder sharing are enabled, share adders 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 AdderSharingMinimumBitwidth
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', ...
'AdderSharingMinimumBitwidth',16) - When you use
hdlset_param
, you can set the parameter on the model and then generate HDL code usingmakehdl
.
hdlset_param('sfir_fixed','AdderSharingMinimumBitwidth',16)
makehdl('sfir_fixed/symmetric_fir')
Recommended Settings
No recommendations.
Programmatic Use
Parameter: AdderSharingMinimumBitwidth |
---|
Type: integer |
Value: integer greater than or equal to 0 |
Default: 0 |
Version History
Introduced in R2015a