Main Content

Atomic subsystems

Share Atomic Subsystem blocks with the resource sharing optimization

Model Configuration Pane: Optimization / Resource sharing

Description

Share Atomic Subsystem blocks with the resource sharing optimization.

Dependencies

To share Atomic Subsystem 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 atomic subsystems.

Off

Do not share atomic subsystems.

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 ShareAtomicSubsystems 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', ... 
            'ShareAtomicSubsystems','on')
  • When you use hdlset_param, you can set the parameter on the model and then generate HDL code using makehdl.

    hdlset_param('sfir_fixed','ShareAtomicSubsystems','on')
    makehdl('sfir_fixed/symmetric_fir')

Recommended Settings

No recommendations.

Programmatic Use

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

Version History

Introduced in R2015a