DVT Eclipse IDE Macros View

Overview

The Macros View presents all the preprocessing macros defined or used in a project.

You can quickly search for specific macros, or see where they are used throughout the code.

The ifdef /ifndef switches, both defined and undefined ones, are aggregated and easy to explore.

Details

Overview

The Macros View presents all the preprocessing macros defined or used in a project. The view is visible by default in the DVT perspective and is populated automatically.

Accessing the Macros View

To show the view in case you've accidentally closed it, go to Window > Show View > Other > DVT > Macros.

Using the Macros View

For each macro, the name, value, definition source file and line are shown.

Use the quick search bar to locate a specific macro. For example, type ADDR to locate the ADDRESS macro. Press Enter or double-click to go to declaration.

Right-click on a macro and pick Show Usages. The Search View is populated with all the places where the macro is called. You can use the up and down arrow buttons to navigate in the list of search hits.

Macro Categories

SystemVerilog Macros

For SystemVerilog, the macros are categorized into:

  • defines
  • ifdef controls
  • ifndef guards

The ifdef control macros can help when exploring a VIP you are not familiar with, since such macros usually represent configuration switches.

e Language Macros

For e Language, there is a separate category for Verilog-style preprocessing directives, while define-as and define-as-computed macros are organized according to their syntactic category.