A SystemVerilog enumeration is an HDL object with numerical values for which text
labels are defined to represent specific values. For example, an enumeration can define LABEL1 to
represent the value 1 and LABEL2 to represent the value 5. The Show As
Enumeration option on the context menu lets you specify whether to show enumeration
values using their given labels or numerically. In the previous example, if Show As Enumeration is on, a value of 5 appears as LABEL2. If the option is off, the value 5 appears as in whatever radix is set for the
enumeration, as shown in the Radix menu.
To display enumerations using labels:
- Select an enumeration
- Right-click and check Display As Enumeration
To display enumerations numerically:
- Select an enumeration
- Right-click and uncheck Display As Enumeration
Note: Enumeration values for which there is no defined label always display numerically, regardless of the Display As Enumeration setting. The Display As Enumeration option is enabled only for SystemVerilog enumeration objects.