From 67e6234a0546a61661799873d8651f6e4e791536 Mon Sep 17 00:00:00 2001 From: Aaron Rossetto Date: Wed, 25 Aug 2021 12:10:43 -0500 Subject: python: Add new method bindings to noc_block_base This commit adds `get_src_epid()` and `get_port_num()` method bindings to the Python bindings for `noc_block_base`. --- host/lib/rfnoc/rfnoc_python.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'host/lib') diff --git a/host/lib/rfnoc/rfnoc_python.hpp b/host/lib/rfnoc/rfnoc_python.hpp index 6eb669b1c..f19ce8fa7 100644 --- a/host/lib/rfnoc/rfnoc_python.hpp +++ b/host/lib/rfnoc/rfnoc_python.hpp @@ -424,6 +424,14 @@ void export_rfnoc(py::module& m) py::arg("timeout"), py::arg("time"), py::arg("ack") = false) + .def("get_src_epid", + [](noc_block_base& self) { + return self.regs().get_src_epid(); + }) + .def("get_port_num", + [](noc_block_base& self) { + return self.regs().get_port_num(); + }) .def("__repr__", [](noc_block_base& self) { return ""; -- cgit v1.2.3