HAL
module_pin.cpp
Go to the documentation of this file.
2 
3 namespace hal
4 {
6  {
7  py::class_<ModulePin, BasePin<ModulePin>, RawPtrWrapper<ModulePin>> py_module_pin(m, "ModulePin", R"(
8  The pin of a module. Each pin has a name, a direction, and a type and is associated with a net.
9  )");
10 
11  py_module_pin.def(py::self == py::self, R"(
12  Check whether two module pins are equal.
13 
14  :returns: True if both module pins are equal, False otherwise.
15  :rtype: bool
16  )");
17 
18  py_module_pin.def(py::self != py::self, R"(
19  Check whether two module pins are unequal.
20 
21  :returns: True if both module pins are unequal, False otherwise.
22  :rtype: bool
23  )");
24 
25  py_module_pin.def_property_readonly("net", &ModulePin::get_net, R"(
26  The net passing through the pin.
27 
28  :type: hal_py.Net
29  )");
30 
31  py_module_pin.def("get_net", &ModulePin::get_net, R"(
32  Get the net passing through the pin.
33 
34  :returns: The net of the pin.
35  :rtype: hal_py.Net
36  )");
37  }
38 } // namespace hal
Net * get_net() const
Definition: module_pin.cpp:19
void module_pin_init(py::module &m)
Definition: module_pin.cpp:5
std::unique_ptr< T, py::nodelete > RawPtrWrapper
const Module * module(const Gate *g, const NodeBoxes &boxes)