Adding offset to RegisterAddress (#1413)
Build and Deploy on local RHEL9 / build (push) Successful in 2m3s
Build on RHEL9 docker image / build (push) Successful in 3m58s
Build and Deploy on local RHEL8 / build (push) Successful in 5m0s
Build on RHEL8 docker image / build (push) Successful in 5m7s
Run Simulator Tests on local RHEL9 / build (push) Successful in 14m40s
Run Simulator Tests on local RHEL8 / build (push) Successful in 17m4s

* implemented + and += for RegisterAddres and tests plus test cleanup
This commit is contained in:
Erik Fröjdh
2026-03-05 09:32:21 +01:00
committed by GitHub
parent 6e090dbba2
commit 9f72688b9c
5 changed files with 56 additions and 8 deletions
+4 -1
View File
@@ -26,7 +26,10 @@ void init_bit(py::module &m) {
.def("__str__", &RegisterAddress::str)
.def("value", &RegisterAddress::value)
.def(py::self == py::self)
.def(py::self != py::self);
.def(py::self != py::self)
.def("__add__",&RegisterAddress::operator+)
.def("__radd__",&RegisterAddress::operator+)
.def("__iadd__",&RegisterAddress::operator+=, py::return_value_policy::reference_internal);
py::class_<BitAddress>(m, "BitAddress")
.def(py::init())