Share Adders
Share adders with the resource sharing optimization
Model Configuration Pane: Optimization / Resource sharing
Description
Enable this parameter to share adders with the resource sharing optimization. Resource sharing identifies Add or Sum blocks in your design that have two inputs and replaces them with a single Add or Sum block. This optimization saves area on the target FPGA device.
Dependencies
To share adders in your design, in the HDL Block Properties for the DUT Subsystem, specify the SharingFactor.
When you specify the Adder sharing minimum bitwidth, the code generator shares adders that have a bit width greater than or equal to the minimum bit width. The default minimum bit width for sharing adders is zero.
Settings
Off
(default) | On
On
When resource sharing is enabled, this optimization shares adders with a bit width greater than or equal to the Adder sharing minimum bitwidth.
Off
Do not share adders.
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 ShareAdders
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', ... 'ShareAdders','on')
When you use
hdlset_param
, you can set the parameter on the model and then generate HDL code usingmakehdl
.hdlset_param('sfir_fixed','ShareAdders','on') makehdl('sfir_fixed/symmetric_fir')
Recommended Settings
No recommendations.
Programmatic Use
Parameter: ShareAdders |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2015a