|
HAL
v4.5.0-130-g83e8bfb3f
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
GUI extension interface for the netlist preprocessing plugin. More...


Public Member Functions | |
| GuiExtensionNetlistPreprocessing () | |
Default constructor for GuiExtensionNetlistPreprocessing. More... | |
| std::vector< ContextMenuContribution > | get_context_contribution (const Netlist *nl, const std::vector< u32 > &mods, const std::vector< u32 > &gats, const std::vector< u32 > &nets) override |
| Get the context menu entries contributed for the given selection. More... | |
| void | execute_function (std::string tag, Netlist *nl, const std::vector< u32 > &mods, const std::vector< u32 > &gats, const std::vector< u32 > &nets) override |
| Execute the context menu entry identified by the given tag. More... | |
Public Member Functions inherited from hal::GuiExtensionInterface | |
| GuiExtensionInterface (const std::string &toplabel=std::string()) | |
| virtual | ~GuiExtensionInterface () |
| virtual std::vector< PluginParameter > | get_parameter () const |
| virtual void | set_parameter (const std::vector< PluginParameter > ¶ms) |
| virtual void | register_progress_indicator (std::function< void(int, const std::string &)> pif) |
| virtual void | netlist_loaded (Netlist *nl) |
| virtual void | netlist_about_to_close (Netlist *nl) |
| bool | is_contribution_enabled () const |
| void | set_contribution_enabled (bool enabled) |
| std::string | contribution_top_label () const |
Public Member Functions inherited from hal::AbstractExtensionInterface | |
| AbstractExtensionInterface () | |
| virtual | ~AbstractExtensionInterface () |
GUI extension interface for the netlist preprocessing plugin.
Contributes the most commonly used preprocessing steps to the context menus of the GUI, so that they can be applied to the current selection or to the entire netlist without writing a script.
Definition at line 95 of file plugin_netlist_preprocessing.h.
|
inline |
Default constructor for GuiExtensionNetlistPreprocessing.
Definition at line 101 of file plugin_netlist_preprocessing.h.
|
overridevirtual |
Execute the context menu entry identified by the given tag.
| [in] | tag | - The tag of the entry to execute. |
| [in] | nl | - The netlist that is currently open. |
| [in] | mods | - The IDs of the currently selected modules. |
| [in] | gats | - The IDs of the currently selected gates. |
| [in] | nets | - The IDs of the currently selected nets. |
Reimplemented from hal::GuiExtensionInterface.
Definition at line 111 of file plugin_netlist_preprocessing.cpp.
References log_error, log_info, log_warning, hal::netlist_preprocessing::remove_buffers(), and hal::netlist_preprocessing::unify_ff_outputs().
|
overridevirtual |
Get the context menu entries contributed for the given selection.
If modules or gates are selected, only the entries operating on that selection are contributed. The entries operating on the entire netlist are contributed when nothing is selected.
| [in] | nl | - The netlist that is currently open. |
| [in] | mods | - The IDs of the currently selected modules. |
| [in] | gats | - The IDs of the currently selected gates. |
| [in] | nets | - The IDs of the currently selected nets. |
Reimplemented from hal::GuiExtensionInterface.
Definition at line 84 of file plugin_netlist_preprocessing.cpp.
References hal::ContextMenuContribution::mContributer, hal::ContextMenuContribution::mEntry, and hal::ContextMenuContribution::mTagname.