Skip to content

Module Widget

joern274 edited this page Feb 25, 2026 · 25 revisions

The Module Widget illustrates the netlist's module hierarchy as a tree. The user can opt to or not to display gates and nets within this hierarchic tree. The widget features helpful actions including, but not limited to, adding a child module or changing the module's displayed color.

Module Widget

Toolbar

The toolbar comprises the actions

Module Widget Toolbar

Context Menu

The context menu shown here gets triggered when a module is selected. The structure of the context menu for gates and nets is similar but some module specific actions are missing. The menu entries shown in the snapshot below are

Module Widget Context Menu

1. Toggle Net Visibility

By using this toggle button the user decides whether nets belonging to modules are shown within the hierarchic tree or whether nets are omitted.

2. Toggle Gate Visibility

By using this toggle button the user decides whether gates are shown within the hierarchic tree or whether gates are omitted. In HAL every gate is assigned to a module.

3. Rename

Opens an input dialog and changes the name of the (module / gate / net) item to the given input.

Search Module

To find a specific module, a filter can be applied to the tree. Pressing the shortcut CTRL + F while the widget is focused or left-clicking the magnifying glass in the toolbar of the widget toggles the search bar. As a result, only modules matching the text in the search bar and the parent modules are shown in the tree. The filter is only active when the searchbar is visible. The magnifying glass in the toolbar changes to a green color to indicate that the filter is active.

Focus in View

Focus on selected item if the current view contains (module / gate / net) item.

Isolate in View

Opens a new view containing only the selected module in the Graph View. The new view is also added to the list of the Views Widget.

Move to Module

Adds the current selection to the module selected in the tree.

Add Child Module

Adds a new module to the selected module as a child.

Change Module Type

Opens an input dialog and changes the type of the module to the given input.

Change Module Color

Opens a color dialog and changes the displayed color of the module to the chosen color.

Delete Module

Deletes the selected module. All elements which were assigned to the deleted module are assigned to the parent module of the delete module.

Clone this wiki locally