Changing the Format of SystemVerilog Enumerations - 2022.2 English

Vivado Design Suite User Guide: Logic Simulation (UG900)

Document ID
UG900
Release Date
2022-10-19
Version
2022.2 English

A SystemVerilog enumeration is an HDL object with numerical values for which text labels are defined to represent specific values. For example, an enumeration might 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:

  1. Select an enumeration
  2. Right-click and check Display As Enumeration

To display enumerations numerically:

  1. Select an enumeration
  2. 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.