hisl_0038: Configuration Parameters > Code Generation > Comments
R2026bEnable code generation comment parameters for traceability between code and model
Usage: High-Integrity System Modeling
Guideline ID: hisl_0038
Rules
In the Configuration Parameters dialog box, on the Code Generation > Comments pane, select these parameters:
| hisl_0038: Configuration Parameters > Code Generation > Comments | |
|---|---|
| A | Include comments (Simulink Coder). Rationale Including comments provides good traceability between the code and the model. Verification Check safety-related code generation settings for comments (Simulink Check) |
| B | Simulink block comments (Simulink Coder). Rationale Including comments that describe the code for blocks provides good traceability between the code and the model. Verification Check safety-related code generation settings for comments (Simulink Check) |
| C | Show eliminated blocks (Simulink Coder). Rationale Including comments that describe the code for blocks eliminated from a model provides good traceability between the code and the model. Verification Check safety-related code generation settings for comments (Simulink Check) |
| D | Verbose comments for 'Model default' storage class (Simulink Coder). Rationale Including the names of parameter variables and
source blocks as comments in the model parameter structure declaration in
Verification Check safety-related code generation settings for comments (Simulink Check) |
| E | Requirements in block comments (Embedded Coder). Rationale Including requirement descriptions assigned to Simulink blocks as comments provides good traceability between the code and the model. Verification Check safety-related code generation settings for comments (Simulink Check) |
| F | Stateflow object comments (Simulink Coder) Rationale Including Stateflow® object comments provides good traceability between the code and the model. Verification Check safety-related code generation settings for comments (Simulink Check) |
| G | MATLAB source code as comments (Simulink Coder) Rationale Including MATLAB® source code as comments provides good traceability between the code and the model. Verification Check safety-related code generation settings for comments (Simulink Check) |
Industry Standards
DO-331, Section MB.6.3.4.e 'Source code is traceable to low-level requirements'
IEC 61508-3, Table A.3 (3) 'Language subset'
IEC 62304, 5.5.3 - Software Unit acceptance criteria
ISO 26262-6, Table 1 (1e) 'Use of well-trusted design principles'
EN 50128, Table A.4 (11) 'Language Subset'
EN 50657, Table A.4 (11) 'Language Subset'
Version History
Introduced in R2016bSee Also
Model Configuration Parameters: Comments (Embedded Coder)