HAL
python_bindings.h
Go to the documentation of this file.
1 // MIT License
2 //
3 // Copyright (c) 2019 Ruhr University Bochum, Chair for Embedded Security. All Rights reserved.
4 // Copyright (c) 2019 Marc Fyrbiak, Sebastian Wallat, Max Hoffmann ("ORIGINAL AUTHORS"). All rights reserved.
5 // Copyright (c) 2021 Max Planck Institute for Security and Privacy. All Rights reserved.
6 // Copyright (c) 2021 Jörn Langheinrich, Julian Speith, Nils Albartus, René Walendy, Simon Klix ("ORIGINAL AUTHORS"). All Rights reserved.
7 //
8 // Permission is hereby granted, free of charge, to any person obtaining a copy
9 // of this software and associated documentation files (the "Software"), to deal
10 // in the Software without restriction, including without limitation the rights
11 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 // copies of the Software, and to permit persons to whom the Software is
13 // furnished to do so, subject to the following conditions:
14 //
15 // The above copyright notice and this permission notice shall be included in all
16 // copies or substantial portions of the Software.
17 //
18 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 // SOFTWARE.
25 
26 #pragma once
27 
28 #include "hal_core/defines.h"
39 #include "hal_core/netlist/gate.h"
48 #include "hal_core/netlist/net.h"
60 #include "hal_core/utilities/log.h"
62 
63 #pragma GCC diagnostic push
64 #pragma GCC diagnostic ignored "-Wshadow"
65 #ifdef COMPILER_CLANG
66 #pragma clang diagnostic ignored "-Wnested-anon-types"
67 #pragma clang diagnostic ignored "-Wshadow-field-in-constructor-modified"
68 #pragma clang diagnostic ignored "-Wself-assign-overloaded"
69 #endif
70 
71 #include "pybind11/functional.h"
72 #include "pybind11/operators.h"
73 #include "pybind11/pybind11.h"
74 #include "pybind11/stl.h"
75 #include "pybind11/stl/filesystem.h"
76 #include "pybind11/stl_bind.h"
77 
78 #pragma GCC diagnostic pop
79 
80 namespace hal
81 {
82  namespace py = pybind11;
83 
89  template<class T>
90  using RawPtrWrapper = std::unique_ptr<T, py::nodelete>;
91 
105 
111  void core_utils_init(py::module& m);
112 
118  void gate_type_init(py::module& m);
119 
126 
133 
140 
146  void gate_library_init(py::module& m);
147 
154 
160  void endpoint_init(py::module& m);
161 
167  void netlist_init(py::module& m);
168 
175 
182 
189 
195  void base_pin_init(py::module& m);
196 
202  void gate_pin_init(py::module& m);
203 
210 
216  void module_pin_init(py::module& m);
217 
224 
230  void gate_init(py::module& m);
231 
237  void net_init(py::module& m);
238 
244  void module_init(py::module& m);
245 
251  void grouping_init(py::module& m);
252 
259 
266 
273 
280 
287 
293  void smt_init(py::module& m);
294 
301 
308 
315 
322 
329 
335  void log_init(py::module& m);
339 } // namespace hal
void grouping_init(py::module &m)
Definition: grouping.cpp:5
void gate_type_sequential_init(py::module &m)
void module_pin_init(py::module &m)
Definition: module_pin.cpp:5
void netlist_writer_manager_init(py::module &m)
void gate_library_init(py::module &m)
Definition: gate_library.cpp:5
void netlist_serializer_init(py::module &m)
void net_init(py::module &m)
Definition: net.cpp:5
void gate_type_components_init(py::module &m)
void gate_pin_group_init(py::module &m)
void gate_pin_init(py::module &m)
Definition: gate_pin.cpp:5
void netlist_utils_init(py::module &m)
void endpoint_init(py::module &m)
Definition: endpoint.cpp:5
void smt_init(py::module &m)
Definition: smt.cpp:5
void base_pin_init(py::module &m)
Definition: base_pin.cpp:5
std::unique_ptr< T, py::nodelete > RawPtrWrapper
void module_pin_group_init(py::module &m)
void plugin_manager_init(py::module &m)
void netlist_init(py::module &m)
Definition: netlist.cpp:5
void gate_init(py::module &m)
Definition: gate.cpp:5
void module_init(py::module &m)
Definition: module.cpp:5
void gate_type_lut_init(py::module &m)
void boolean_function_net_decorator_init(py::module &m)
void project_manager_init(py::module &m)
void subgraph_netlist_decorator_init(py::module &m)
void log_init(py::module &m)
Definition: log.cpp:9
void gate_library_manager_init(py::module &m)
void gate_type_init(py::module &m)
Definition: gate_type.cpp:5
void netlist_modification_decorator_init(py::module &m)
void netlist_traversal_decorator_init(py::module &m)
void data_container_init(py::module &m)
void boolean_function_decorator_init(py::module &m)
void plugin_interfaces_init(py::module &m)
void boolean_function_init(py::module &m)
void core_utils_init(py::module &m)
Definition: core_utils.cpp:5
void netlist_factory_init(py::module &m)
const Module * module(const Gate *g, const NodeBoxes &boxes)
This file contains various functions to create and load netlists.