How to use the UVM Field Editor in the DVT Eclipse IDE
Overview
The UVM Field Editor enables you to inspect and edit UVM field registrations. It allows you to quickly add, remove and edit the registration macros and presents field statistics (total no. of fields, no. of registered fields, no. of warnings/errors).
Explore the design and verification tools: https://www.dvteclipse.com
Or request a license: https://www.dvteclipse.com/request-license
Details
The UVM Field Editor simplifies UVM factory registration and field automation.
Accessing the UVM Field Editor
Let's assume we don't have this block of macros.
- Place the editor cursor inside a class, right-click, and go to Source > UVM Field Editor, or use the
Alt
+Shift
+G
keyboard shortcut. - Select the class checkbox to get the
uvm_object_utils
Vector Registration macro. - Select the fields for which you want to implement the core data methods.
- The proper UVM Field macro will be used, for example,
uvm_field_int
for anint
type. - You can tune the flags for one or more fields, for example, if you want to exclude one of them from compare.
You can invoke the UVM Field Editor anytime, for example, to configure an additional field or to change its flags.