-
Notifications
You must be signed in to change notification settings - Fork 92
Module Widget
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.

The toolbar comprises the actions
- Toggle net visibility (1)
- Toggle gate visibility (2)
- Rename (3)
- Delete module (6)
- Search (7)
- Toggle expand all/collapse all (8)

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
- To clipboard ... (9)
- Change -> Module name (3)
- Change -> Module type (4)
- Change -> Module color (5)
- Add child Module (10)
- To selection ... (11)
- Move to Module (12)
- To grouping ... (13)
- Focus module in Graph View (14)
- Isolate module in new view (15)
- Delete Module (6)

By using this toggle button the user decides whether nets belonging to modules are shown within the hierarchic tree or whether nets are omitted.
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.
Opens an input dialog and changes the name of the (module / gate / net) item to the given input.
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 on selected item if the current view contains (module / gate / net) item.
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.
Adds the current selection to the module selected in the tree.
Adds a new module to the selected module as a child.
Opens an input dialog and changes the type of the module to the given input.
Opens a color dialog and changes the displayed color of the module to the chosen color.
Deletes the selected module. All elements which were assigned to the deleted module are assigned to the parent module of the delete module.