Skip to Main Content Skip to Search
Product Documentation

Code Generation Pane: Memory Sections

Code Generation: Memory Sections Tab Overview

Insert comments and pragmas into the generated code for data and functions.

Configuration

This tab appears only if you specify an ERT based system target file.

See Also

Package

Specify a package that contains memory sections you want to apply to model-level functions and internal data.

Settings

Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.

Default: ---None---

---None---

Suppresses memory sections.

Simulink

Applies the built-in Simulink package.

mpt

Applies the built-in mpt package.

Tip

If you have defined any packages of your own, click Refresh package list. This action adds all user-defined packages on your search path to the package list.

Command-Line Information

Parameter: MemSecPackage
Type: string
Value: '--- None ---' | 'Simulink' | 'mpt'
Default: '--- None ---'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Memory Sections

Refresh package list

Add user-defined packages that are on the search path to list of packages displayed by Packages.

Tip

If you have defined any packages of your own, click Refresh package list. This action adds all user-defined packages on your search path to the package list.

See Also

Memory Sections

Initialize/Terminate

Specify whether to apply a memory section to Initialize/Start and Terminate functions.

Settings

Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.

Default: Default

Default

Suppresses the use of a memory section for Initialize, Start, and Terminate functions.

memory-section-name

Applies a memory section to Initialize, Start, and Terminate functions.

Command-Line Information

Parameter: MemSecFuncInitTerm
Type: string
Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile'
Default: 'Default'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Memory Sections

Execution

Specify whether to apply a memory section to execution functions.

Settings

Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.

Default: Default

Default

Suppresses the use of a memory section for Step, Run-time initialization, Derivative, Enable, and Disable functions.

memory-section-name

Applies a memory section to Step, Run-time initialization, Derivative, Enable, and Disable functions.

Command-Line Information

Parameter: MemSecFuncExecute
Type: string
Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile'
Default: 'Default'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Memory Sections

Shared utility

Specify whether to apply memory sections to shared utility functions.

Settings

Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.

Default: Default

Default

Suppresses the use of memory sections for shared utility functions.

memory-section-name

Applies a memory section to shared utility functions, such as fixed-point functions, lookup table functions, and binary search functions.

Command-Line Information

Parameter: MemSecFuncSharedUtil
Type: string
Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile'
Default: 'Default'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Memory Sections

Constants

Specify whether to apply a memory section to constants.

Settings

Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.

Default: Default

Default

Suppresses the use of a memory section for constants.

memory-section-name

Applies a memory section to constants.

This parameter applies to:

Data DefinitionData Purpose
model_cPConstant parameters
model_cBConstant block I/O
model_ZZero representation

Command-Line Information

Parameter: MemSecDataConstants
Type: string
Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile'
Default: 'Default'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Memory Sections

Inputs/Outputs

Specify whether to apply a memory section to root input and output.

Settings

Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.

Default: Default

Default

Suppresses the use of a memory section for root-level input and output.

memory-section-name

Applies a memory section for root-level input and output.

This parameter applies to:

Data DefinitionData Purpose
model_URoot-level input
model_YRoot-level output

Command-Line Information

Parameter: MemSecDataIO
Type: string
Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile'
Default: 'Default'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Memory Sections

Internal data

Specify whether to apply a memory section to internal data.

Settings

Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.

Default: Default

Default

Suppresses the use of a memory section for internal data.

memory-section-name

Applies a memory section for internal data.

This parameter applies to:

Data DefinitionData Purpose
model_BBlock I/O
model_DDWork vectors
model_MRun-time model
model_ZeroZero-crossings

Command-Line Information

Parameter: MemSecDataInternal
Type: string
Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile'
Default: 'Default'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Memory Sections

Parameters

Specify whether to apply a memory section to parameters.

Settings

Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.

Default: Default

Default

Suppress the use of a memory section for parameters.

memory-section-name

Apply memory section for parameters.

This parameter applies to:

Data DefinitionData Purpose
model_PParameters

Command-Line Information

Parameter: MemSecDataParameters
Type: string
Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile'
Default: 'Default'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Memory Sections

Validation results

Display the results of memory section validation.

Settings

The code generation software checks and reports whether the currently chosen package is on the MATLAB path and that the selected memory sections exist inside the package.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS