Skip to content

Commit

Permalink
documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
SJulianS committed Jun 3, 2024
1 parent a7c97a1 commit 498f592
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 16 deletions.
12 changes: 6 additions & 6 deletions plugins/dataflow_analysis/documentation/dataflow.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Dataflow Analysis (DANA)
==========================

.. autoclass:: dataflow.DataflowPlugin
:members:
.. automodule:: dataflow
:members: analyze

.. autoclass:: dataflow.Dataflow.Configuration
.. autoclass:: dataflow.Configuration
:members:

.. automethod:: __init__

.. autoclass:: dataflow.Dataflow.Result
.. autoclass:: dataflow.Result
:members:

.. automodule:: dataflow.Dataflow
:members: analyze
.. autoclass:: dataflow.DataflowPlugin
:members:
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ namespace hal
*/
std::string get_name() const override;

/**
* @brief Get the version of the plugin.
*
* @returns The version of the plugin.
*/
std::string get_version() const override;

/**
* @brief Get a short description of the plugin.
*
Expand All @@ -138,10 +145,10 @@ namespace hal
std::string get_description() const override;

/**
* @brief Get the version of the plugin.
*
* @returns The version of the plugin.
* @brief Get the plugin dependencies.
*
* @returns A set of plugin names that this plugin depends on.
*/
std::string get_version() const override;
std::set<std::string> get_dependencies() const override;
};
} // namespace hal
7 changes: 4 additions & 3 deletions plugins/dataflow_analysis/python/python_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ namespace hal
#ifdef PYBIND11_MODULE
PYBIND11_MODULE(dataflow, m)
{
m.doc() = "hal DataflowPlugin python bindings";
m.doc() = "Dataflow analysis tool DANA to recover word-level structures such as registers from gate-level netlists.";
#else
PYBIND11_PLUGIN(dataflow)
{
py::module m("dataflow", "hal DataflowPlugin python bindings");
py::module m("dataflow", "Dataflow analysis tool DANA to recover word-level structures such as registers from gate-level netlists.");
#endif // ifdef PYBIND11_MODULE
py::class_<DataflowPlugin, RawPtrWrapper<DataflowPlugin>, BasePluginInterface> py_dataflow_plugin(m, "DataflowPlugin");
py::class_<DataflowPlugin, RawPtrWrapper<DataflowPlugin>, BasePluginInterface> py_dataflow_plugin(
m, "DataflowPlugin", R"(This class provides an interface to integrate the DANA tool as a plugin within the HAL framework.)");

py_dataflow_plugin.def_property_readonly("name", &DataflowPlugin::get_name, R"(
The name of the plugin.
Expand Down
11 changes: 8 additions & 3 deletions plugins/dataflow_analysis/src/plugin_dataflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ namespace hal
return std::string("dataflow");
}

std::string DataflowPlugin::get_version() const
{
return std::string("0.3");
}

std::string DataflowPlugin::get_description() const
{
return "Dataflow analysis for gate-level netlist reverse engineering";
return "Dataflow analysis tool DANA to recover word-level structures such as registers from gate-level netlists.";
}

std::string DataflowPlugin::get_version() const
std::set<std::string> DataflowPlugin::get_dependencies() const
{
return std::string("0.3");
return {};
}

DataflowPlugin::DataflowPlugin()
Expand Down

0 comments on commit 498f592

Please sign in to comment.