HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
plugin_verilator.cpp
Go to the documentation of this file.
2 
5 #include "verilator/verilator.h"
6 
7 namespace hal
8 {
9  std::string VerilatorSimulatorPlugin::s_engine_name;
10 
11  extern std::unique_ptr<BasePluginInterface> create_plugin_instance()
12  {
13  return std::make_unique<VerilatorSimulatorPlugin>();
14  }
15 
17  {
18  return std::string("verilator");
19  }
20 
22  {
23  return std::string("0.1");
24  }
25 
26  std::set<std::string> VerilatorSimulatorPlugin::get_dependencies() const
27  {
28  std::set<std::string> retval;
29  retval.insert("verilog_writer");
30  return retval;
31  }
32 
34  {
35  // constructor will register with controller
36  s_engine_name = (new verilator::VerilatorEngineFactory)->name();
37  }
38 
40  {
42  }
43 } // namespace hal
void deleteFactory(const std::string nam)
static SimulationEngineFactories * instance()
std::set< std::string > get_dependencies() const override
std::string get_name() const override
std::string get_version() const override
Definition: defines.h:45
std::unique_ptr< BasePluginInterface > create_plugin_instance()
std::string name