Bit Field Diagrams

Bit Field Diagrams for UVM registers

DVT can render bit field diagrams from UVM register configurations in tooltips and in the Inspect View.

Trigger the tooltip from the Editor, by hovering a register class (a class that extends from uvm_reg) or a field of register class type:

../../_images/uvm_reg_bitfield.png

To see the diagram in the Inspect View, simply click on a register class in the Editor, UVM Browser View or UVM Sequence Tree View:

../../_images/bitfield_sequence_tree.png

Tip

To save the diagram as an SVG file, right-click on it in the Inspect View.

Tip

To copy the table contents to system clipboard, right-click on it in the Inspect View.

Note

Diagrams are rendered using the BitField library.

Bit Field Diagrams for packed data types

DVT can render bit field diagrams from packed data types declarations in tooltips and in the Inspect View.

Trigger the tooltip from the Editor, by hovering a packed struct or union data type:

Declaration

Tooltip Window

Notes

../../_images/packed_struct_desc.png
../../_images/packed_struct_bitfield.png

The memory layout is represented horizontally from MSB to LSB.

../../_images/packed_nested_desc.png
../../_images/packed_nested_bitfield.png

Nested types are represented vertically.

../../_images/packed_union_desc.png
../../_images/packed_union_bitfield.png

Union members are separated with a blank line.

../../_images/packed_mixed_desc.png
../../_images/packed_mixed_bitfield.png

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

Note

To see the diagram in the Inspect View, simply click on a packed struct or union data type in the Editor:

../../_images/inspect_view_bitfield.png

Tip

To save the diagram as an SVG file, right-click on it in the Inspect View.

Tip

To copy the table contents to system clipboard, right-click on it in the Inspect View.

Tip

Inspect View offers zoom and pan functionality for diagrams which exceed 64 bits.

Note

Diagrams are rendered using the BitField library.