MATLAB Function blocks
Share MATLAB Function blocks with the resource sharing optimization
Model Configuration Pane: Optimization / Resource sharing
Description
Share MATLAB Function blocks with the resource sharing optimization.
Dependencies
To share MATLAB Function blocks in your design, in the HDL Block Properties for the parent DUT Subsystem, specify the SharingFactor.
Settings
On
(default) | Off
On
When you enable resource sharing, HDL Coder™ shares MATLAB Function blocks.
Off
Do not share MATLAB Function blocks.
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 ShareMATLABBlocks
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', ... 'ShareMATLABBlocks','on')
When you use
hdlset_param
, you can set the parameter on the model and then generate HDL code usingmakehdl
.hdlset_param('sfir_fixed','ShareMATLABBlocks','on') makehdl('sfir_fixed/symmetric_fir')
Recommended Settings
No recommendations.
Programmatic Use
Parameter: ShareMATLABBlocks |
Type: character vector |
Value: 'on' | 'off' |
Default: 'on' |
Version History
Introduced in R2015a