Main Content

Generate parameterized HDL code from masked subsystem

Generate reusable HDL code for subsystems

Model Configuration Pane: Global Settings / Coding style


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


off (default) | on

Default: Off


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 ParameterLimitation
Constant Constant value on the Main tab in the dialog boxNone
GainGain on the Main tab in the dialog boxParameter data type must be the same for all Gain blocks.

Generate a separate HDL file for each masked subsystem.


To set this property, use the functions hdlset_param or makehdl. To view the property value, use the function hdlget_param.

Recommended Settings

No recommended settings.

Programmatic Use

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

Restrictions for Mask Parameter Values

  • Each value must be a scalar, vector, or matrix.

  • Values must not be complex.

  • Values must not be enumerated data.

Version History

Introduced in R2012a