Generate parameterized HDL code from masked subsystem - Generate reusable HDL code for subsystems - MATLAB (original) (raw)

Main Content

Generate reusable HDL code for subsystems

Model Configuration Pane: Global Settings / Coding style

Description

Generate reusable HDL code for atomic subsystems that have the same tunable mask parameters, but with different values.

Settings

off (default) | on

Default: Off

on

Generate one reusable HDL file for multiple masked subsystems that have different values for the mask parameters. HDL Coderâ„¢ supports scalar, vector, and matrix values as mask parameters. HDL Coder detects subsystems that have tunable mask parameters, which are sharable.

Inside the subsystem, you can use the mask parameter only in the blocks and parameters listed in the table.

Block Parameter Limitation
Constant Constant value on theMain tab in the dialog box None
Gain Gain on theMain tab in the dialog box Parameter data type must be the same for all Gain blocks.

off

Generate a separate HDL file for each masked subsystem.

No recommended settings.

Programmatic Use

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

Restrictions for Mask Parameter Values

Version History

Introduced in R2012a