Bit Field Diagrams

Bit Field Diagrams for UVM registers

To display a UVM register bit field diagram, you can:

  • hover over a register class (a class that extends from uvm_reg) or a field of register class type to see it in the tooltip

  • place the cursor on such an element and use the DVT: Show Diagram command

../../_images/bitfield_diagram.gif

Note

Diagrams are rendered using the BitField library.

Bit Field Diagrams for packed data types

To display a bit field diagram for a packed data type, you can:

  • hover over a packed struct or union type to see it in the tooltip

  • place the cursor on such an element and use the DVT: Show Diagram command

Declaration

Tooltip Window

Notes

../../_images/vs_packed_struct_desc.png
../../_images/vs_packed_struct_bitfield.png

The memory layout is represented horizontally from MSB to LSB.

../../_images/vs_packed_nested_desc.png
../../_images/vs_packed_nested_bitfield.png

Nested types are represented vertically.

../../_images/vs_packed_union_desc.png
../../_images/vs_packed_union_bitfield.png

Union members are separated with a blank line.

../../_images/vs_packed_mixed_desc.png
../../_images/vs_packed_mixed_bitfield.png

Additional information, for example the type of a member, can be found in the table below the diagram.

When generating the diagram using the DVT: Show Diagram command, you will get advanced functionalities such as zooming, panning, the option to save the diagram or copy the table contents to clipboard:

../../_images/vs_view_packed_bitfield.png

Tip

By clicking on a bit field within the diagram, you can automatically navigate to the corresponding table cell, and vice versa.

Note

To switch the layout of the diagram to a single lane use the toolbar button or go to File ‣ Preferences ‣ Settings ‣ Extensions ‣ DVT ‣ Diagrams ‣ Bitfield.

Note

Diagrams are rendered using the Bit Field library.