MATLAB Function blocks - Share MATLAB Function blocks with the resource sharing optimization - MATLAB (original) (raw)

Main Content

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.

No recommendations.

Programmatic Use

Parameter: ShareMATLABBlocks
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Version History

Introduced in R2015a