Bit Field Diagrams

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

  • hover over a record type to see it in the tooltip

  • place the cursor on a record and use the DVT: Show Diagram command

Diagrams

Notes

../../_images/vscode_vhdl_bitfield_1.png

The layout of a record type is represented horizontally, with the least significant bit (LSB) being the first declared member.

../../_images/vscode_vhdl_bitfield_2.png

Nested types are represented vertically.

../../_images/vscode_vhdl_bitfield_3.png

By default, record types that exceed 32 bits are divided into multiple lanes of 32 bits each. For further details such as the type of a member, refer to the table located 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/vscode_vhdl_bitfield_4.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 disable the division of larger types use the toolbar button or go to File > Preferences > Settings > Extensions > DVT > Diagrams > Bitfield.

Note

Diagrams are rendered using the Bit Field library.