Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Optimization Pane: Stateflow

When Simulink® Coder™ is installed on your system, the Optimization > Stateflow pane includes the following parameters:

Optimization Pane: Stateflow Tab Overview

Set up optimizations for a model's active configuration set.

Tips

  • To open the Optimization: Stateflow pane, in the Simulink Editor, select Simulation > Model Configuration Parameters > Optimization > Stateflow.

  • Simulink Coder optimizations appear only when the Simulink Coder product is installed on your system.

See Also

Use bitsets for storing state configuration

Use bitsets to reduce the amount of memory required to store state configuration variables.

Settings

Default: Off

On

Stores state configuration variables in bitsets. Potentially reduces the amount of memory required to store the variables. Potentially requires more instructions to access state configuration, which can result in less optimal code.

Off

Stores state configuration variables in unsigned bytes. Potentially increases the amount of memory required to store the variables. Potentially requires fewer instructions to access state configuration, which can result in more optimal code.

Tips

  • Selecting this check box can significantly reduce the amount of memory required to store the variables. However, it can increase the amount of memory required to store target code if the target processor does not include instructions for manipulating bitsets.

  • Select this check box for Stateflow charts that have a large number of sibling states at a given level of the hierarchy.

  • Clear this check box for Stateflow charts with a small number of sibling states at a given level of the hierarchy.

Dependency

This parameter requires a Simulink Coder license.

Command-Line Information

Parameter: StateBitsets
Type: string
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingOff
TraceabilityOff
EfficiencyOff (execution, ROM), On (RAM)
Safety precautionNo impact

See Also

Use bitsets for storing Boolean data

Use bitsets to reduce the amount of memory required to store Boolean data.

Settings

Default: Off

On

Stores Boolean data in bitsets. Potentially reduces the amount of memory required to store the data. Potentially requires more instructions to access the data, which can result in less optimal code.

Off

Stores Boolean data in unsigned bytes. Potentially increases the amount of memory required to store the data. Potentially requires fewer instructions to access the data, which can result in more optimal code.

Tips

  • Select this check box for Stateflow charts that reference Boolean data infrequently.

  • Clear this check box for Stateflow charts that reference Boolean data frequently.

Dependency

This parameter requires a Simulink Coder license.

Command-Line Information

Parameter: DataBitsets
Type: string
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingOff
TraceabilityOff
EfficiencyOff (execution, ROM), On (RAM)
Safety precautionNo impact

See Also

Was this topic helpful?