To open Add Constant dialog:
1. |
Open new or saved document.. |
2. |
Select Document tab in Properties Editor. |
3. |
On Document tab find Constants property category. If necessary, scroll down to the very last row in the Constants property category till you see the cell saying "Add". |
4. |
Click the cell with "Add" to open Add Constant dialog (see Figure.8 below). |
Option boxes (i.e. Hex, Octal, Decimal and Binary) allow users to set a base for the constant. The Name of the Constant is entered in the Name field. The Value is entered in any format acceptable by the selected HDL.
Since it is customary to use upper case for Constant names, the name is automatically converted to upper case unless the check box is unselected.
All Constants used in the Properties Editors must be named constants, so the constants for all vector widths, counter values, etc. must use named constants defined in the Add Constant Dialog.
Fig.8 Opening Add Constant dialog
In order to edit already existing constant you'll have to select the contant's value in Constants property category and click button in a value cell. This will open Edit Constant dialog which is identical in its outlook with Add Constant dialog.
To delete a certain constant:
1. |
select the contant's value in Constants property category; |
2. |
click button in a value cell; |
3. |
confirm the operation in Remove Constant popup. |
NOTE: |
You can not delete a constant if it is referenced by a tagged value(s). In this case a correspondent warning will be displayed in a popup. |