DVT Eclipse IDE Layers View
Description
The Layers View provides a compact representation for entities with definitions spread across multiple locations in your code.
This video explains how to use the Layers View through several typical use-cases: e type and method extensions, SystemVerilog extern methods and macros, VHDL entities, architectures and overloaded functions.
Explore the design and verification tools: https://www.dvteclipse.com
Or request a license: https://www.dvteclipse.com/request-license
Transcript
Overview
The Layers View provides a compact representation for entities with definitions spread across multiple locations in your code. For example:
- e Language aspect-oriented constructs, like type extensions or method is also
- SystemVerilog extern method declaration and out-of-body implementation
- VHDL function overloads
Accessing the Layers View
Place the editor cursor on the name of an e Language unit, right-click, and choose Show Layers, or press Shift-F3
.
Using the Layers View
Use the quick search bar to locate a specific extension.
Double-click on a layer to jump to the corresponding source location, or use Next and Previous toolbar buttons to navigate layers in order.
The layers are sorted according to the compile order.
Context-Dependent Actions
Right-click on a layer provides several context-dependent actions. For example, you can further inspect the type hierarchy of a struct or see all the usages of a method.
The same works for many language constructs, like enumerated types, events or methods. For methods, press the Layers Collect button to see all extensions listed in a temporary file.
Quick Layers View
While editing, especially when working with the editor maximized, it is more convenient to use the Quick Layers view. Simply press Ctrl-Shift-O
, search, use the up and down arrows to select a layer, and press Enter
.
SystemVerilog Virtual Functions
Let's now focus on a SystemVerilog virtual function. All overrides from parent and child classes are shown.
Note: External declarations are marked with a distinct decoration.
Macro Definitions
The Layers View also allows you to see all places where a particular macro is defined, undefined or redefined.
VHDL Entities and Functions
On to VHDL, let's trigger the Layers View for an entity to quickly see all of its architectures.
The Layers View can also help you explore all definitions of an overloaded function. Notice that for each overload, both the prototype and implementation are shown.