To specify that generated code of an ERT target include requirements:
Select Simulation > Model Configuration Parameters.
In the Select tree of the Configuration Parameters dialog box, select the Code Generation node.
The currently configured system target must be an ERT target.
Under Code Generation, select Comments.
In the Custom comments section on the right, select the Requirements in block comments check box.
Under Code Generation, select Report.
On the Report pane, select:
Create code generation report
Open report automatically
On the Code Generation main pane, click Build.
In the code-generation report, open
Scroll to the code for the Pulse Generator block,
The comments for the code associated with that block include a hyperlink
to the requirement linked to that block.
Click the link
Clock period shall be consistent
with chirp tolerance to open the HTML requirements document
to the associated requirement.
Note: When you click a requirements link in the code comments, the software opens the application for the requirements document, except if the requirements document is a DOORS® module. To view a DOORS requirement, start the DOORS software and log in before clicking the hyperlink in the code comments.