Adding and Editing a Comment (SWC Editors)
Block Diagram Editor for SWCs
To add a comment,
proceed as follows.
In the Basic Blocks palette or toolbar, click the
Comment button.
The Insert Comment window opens.
- In the text field of the Insert Comment window, enter the text for your comment.
- In the View Configuration area, use the combo boxes to set the comment visibility in the available views.
Click OK.
This loads the mouse cursor with the comment.
- Click in the drawing area to place the comment.
To edit a comment,
proceed as follows:
- To move the comment, drag it to a new position.
To change the comment text or visibility, do the following:
Double-click the comment.
The Edit Comment window opens.
- In the text field of the Edit Comment window, change the comment text.
- In the View Configuration area, use the combo boxes to set the comment visibility in the available views.
- Click OK
to close the window and accept your changes.
Your settings in the View Configuration area will be used as defaults for new comments, as long as ASCET runs.
The settings are not stored when you close ASCET. If you export
the view, the settings are stored in the <BasicBlockDefaults>
section of the view
export file. |
ESDL Editor for SWCs
To add a comment,
proceed as follows.
For a single-line comment, enter the following code:
//<your comment>
For a multi-line comment, enter the following code:
/*<your
multi-line
comment>*/
To add a comment after a bit of ESDL code, enter the following code:
<ESDL code>//<your comment>
Or
<ESDL code>/*<your comment>*/
A comment started with /* needs a closing */. If */ is missing, everything from the /* to the end of the runnable/method is treated as comment. |
See also
Insert/Edit Comment Dialog Window
Automatic Documentation – Views
Automatic Documentation – Exporting Views
Automatic Documentation – Example: View Export File