|
HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|


Public Member Functions | |
| std::string | get_name () const override |
| std::string | get_version () const override |
| std::string | get_description () const override |
| void | on_unload () override |
| void | on_load () override |
| std::unique_ptr< NetlistSimulatorController > | create_simulator_controller (const std::string &nam=std::string(), const std::string &workdir=std::string()) const |
| std::unique_ptr< NetlistSimulatorController > | restore_simulator_controller (Netlist *nl, const std::string &filename) const |
| std::shared_ptr< NetlistSimulatorController > | simulator_controller_by_id (u32 id) const |
Public Member Functions inherited from hal::BasePluginInterface | |
| BasePluginInterface ()=default | |
| virtual | ~BasePluginInterface () |
| virtual void | initialize () |
| virtual std::set< std::string > | get_dependencies () const |
| template<typename... Args> | |
| void | log (const Args &... args) const |
| virtual void | initialize_logging () |
| virtual std::vector< AbstractExtensionInterface * > | get_extensions () const |
| template<typename T > | |
| T * | get_first_extension () const |
| void | delete_extension (AbstractExtensionInterface *aeif) |
Static Public Attributes | |
| static SimulationSettings * | sSimulationSettings = nullptr |
| static SimulatorSerializer * | sSimulatorSerializer = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from hal::BasePluginInterface | |
| std::vector< AbstractExtensionInterface * > | m_extensions |
The plugin that provides the simulation controller and the registry of simulation engines.
Definition at line 88 of file plugin_netlist_simulator_controller.h.
| std::unique_ptr< NetlistSimulatorController > hal::NetlistSimulatorControllerPlugin::create_simulator_controller | ( | const std::string & | nam = std::string(), |
| const std::string & | workdir = std::string() |
||
| ) | const |
Create a netlist simulator controller instance.
Definition at line 123 of file plugin_netlist_simulator_controller.cpp.
References hal::NetlistSimulatorController::get_working_directory(), hal::NetlistSimulatorController::is_legal_directory_name(), and log_warning.
Referenced by hal::PYBIND11_PLUGIN().
|
overridevirtual |
Get short description for plugin.
Reimplemented from hal::BasePluginInterface.
Definition at line 118 of file plugin_netlist_simulator_controller.cpp.
|
overridevirtual |
Get the name of the plugin.
Implements hal::BasePluginInterface.
Definition at line 108 of file plugin_netlist_simulator_controller.cpp.
Referenced by hal::PYBIND11_PLUGIN().
|
overridevirtual |
Get the version of the plugin.
Implements hal::BasePluginInterface.
Definition at line 113 of file plugin_netlist_simulator_controller.cpp.
Referenced by hal::PYBIND11_PLUGIN().
|
overridevirtual |
Register resources upon load
Reimplemented from hal::BasePluginInterface.
Definition at line 173 of file plugin_netlist_simulator_controller.cpp.
References QDir::absoluteFilePath(), hal::LogManager::add_channel(), hal::LogManager::create_file_sink(), hal::LogManager::create_gui_sink(), hal::LogManager::create_stdout_sink(), QString::fromStdString(), hal::LogManager::get_instance(), hal::utils::get_user_config_directory(), QResource::registerResource(), sSimulationSettings, and sSimulatorSerializer.
|
overridevirtual |
Delete all bindings upon unload
Reimplemented from hal::BasePluginInterface.
Definition at line 160 of file plugin_netlist_simulator_controller.cpp.
References hal::NetlistSimulatorControllerMap::instance(), hal::NetlistSimulatorControllerMap::shutdown(), sSimulationSettings, sSimulatorSerializer, QSettings::sync(), and QResource::unregisterResource().
| std::unique_ptr< NetlistSimulatorController > hal::NetlistSimulatorControllerPlugin::restore_simulator_controller | ( | Netlist * | nl, |
| const std::string & | filename | ||
| ) | const |
Restore controller with waveform data from previous simulation.
| [in] | nl | The netlist the simulation was performed with. |
| [in] | filename | Full path and filename of 'netlist_simulator_controller.json'. |
Definition at line 136 of file plugin_netlist_simulator_controller.cpp.
References hal::NetlistSimulatorController::get_working_directory().
Referenced by hal::PYBIND11_PLUGIN(), and hal::SimulatorSerializer::restore().
| std::shared_ptr< NetlistSimulatorController > hal::NetlistSimulatorControllerPlugin::simulator_controller_by_id | ( | u32 | id | ) | const |
Share netlist simulator controller instance addressed by id
| [in] | id | Controller-Id |
Definition at line 148 of file plugin_netlist_simulator_controller.cpp.
References hal::NetlistSimulatorControllerMap::controller(), hal::NetlistSimulatorControllerMap::instance(), and log_warning.
Referenced by hal::PYBIND11_PLUGIN().
|
static |
Pointer to simulation controller settings. Use sync() to persist settings.
Definition at line 151 of file plugin_netlist_simulator_controller.h.
Referenced by hal::WaveTreeModel::data(), hal::WaveData::get_events(), hal::GuiExtensionSimulator::get_parameter(), hal::WaveData::loadPolicy(), hal::WaveData::loadSaleae(), hal::NetlistSimulatorController::NetlistSimulatorController(), hal::WaveDataProviderFile::nextPoint(), on_load(), on_unload(), hal::WaveFormPrimitiveUndefined::paint(), hal::WaveRenderEngine::paintEvent(), hal::NetlistSimulatorController::run_simulation(), hal::WaveWidget::setVisualizeNetState(), hal::WaveDataProviderFile::startValue(), hal::WaveDataProviderFile::storeCurrentDatapoint(), and hal::WaveEditTable::WaveEditTable().
|
static |
Definition at line 152 of file plugin_netlist_simulator_controller.h.
Referenced by on_load(), on_unload(), and hal::WaveformViewer::restoreFromProject().