From 45dc9b808298c237af404e45111833526e8151c0 Mon Sep 17 00:00:00 2001 From: Gus Smith Date: Fri, 29 May 2026 10:08:13 -0700 Subject: Update bindings --- sources/api/pySoftMC/pySoftMC.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sources/api/pySoftMC/pySoftMC.cpp') diff --git a/sources/api/pySoftMC/pySoftMC.cpp b/sources/api/pySoftMC/pySoftMC.cpp index 992d9a5..b7a53bd 100644 --- a/sources/api/pySoftMC/pySoftMC.cpp +++ b/sources/api/pySoftMC/pySoftMC.cpp @@ -12,7 +12,7 @@ PYBIND11_MODULE(pySoftMC, m) .value("READ", PC_TYPE::READ) .value("PRE", PC_TYPE::PRE) .value("ACT", PC_TYPE::ACT) - .value("ZQ", PC_TYPE::ZQ) + .value("SEL_CH", PC_TYPE::SEL_CH) .value("REF", PC_TYPE::REF) .value("CYC", PC_TYPE::CYC) .export_values(); @@ -45,10 +45,10 @@ PYBIND11_MODULE(pySoftMC, m) m.def("SMC_WRITE", &SMC_WRITE, py::arg("bar"), py::arg("ibar"), py::arg("car"), py::arg("icar"), py::arg("BL4"), py::arg("ap")); m.def("SMC_READ", &SMC_READ, py::arg("bar"), py::arg("ibar"), py::arg("car"), py::arg("icar"), py::arg("BL4"), py::arg("ap")); - m.def("SMC_PRE", &SMC_PRE, py::arg("bar"), py::arg("ibar"), py::arg("pall")); - m.def("SMC_ACT", &SMC_ACT, py::arg("bar"), py::arg("ibar"), py::arg("rar"), py::arg("irar")); + m.def("SMC_PRE", &SMC_PRE, py::arg("bar"), py::arg("ibar"), py::arg("pall"), py::arg("rank") = 0); + m.def("SMC_ACT", &SMC_ACT, py::arg("bar"), py::arg("ibar"), py::arg("rar"), py::arg("irar"), py::arg("rank") = 0); + m.def("SMC_SEL_CH", &SMC_SEL_CH, py::arg("channel"), py::arg("pseudo_channel") = 0); - m.def("SMC_ZQ", &SMC_ZQ); m.def("SMC_REF", &SMC_REF); m.def("SMC_NOP", &SMC_NOP); m.def("SMC_SRE", &SMC_SRE); -- cgit v1.2.3 From d5fe22de89fa904c7bf19320e348258d678142a3 Mon Sep 17 00:00:00 2001 From: Gus Smith Date: Fri, 29 May 2026 11:03:47 -0700 Subject: Add constructor --- sources/api/pySoftMC/pySoftMC.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'sources/api/pySoftMC/pySoftMC.cpp') diff --git a/sources/api/pySoftMC/pySoftMC.cpp b/sources/api/pySoftMC/pySoftMC.cpp index b7a53bd..6f01620 100644 --- a/sources/api/pySoftMC/pySoftMC.cpp +++ b/sources/api/pySoftMC/pySoftMC.cpp @@ -58,6 +58,7 @@ PYBIND11_MODULE(pySoftMC, m) py::class_(m, "SoftMCPlatform") .def(py::init()) + .def(py::init(), py::arg("dimm_select")) .def("init", &SoftMCPlatform::init) .def("reset_fpga", &SoftMCPlatform::reset_fpga) .def("execute", &SoftMCPlatform::execute, py::arg("program")) -- cgit v1.2.3 From 47f9b1a862ca15a2e10af56456e3c7ec52014db2 Mon Sep 17 00:00:00 2001 From: Gus Smith Date: Fri, 29 May 2026 11:11:40 -0700 Subject: Use system include for pybind --- sources/api/platform.h | 2 +- sources/api/pySoftMC/pySoftMC.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sources/api/pySoftMC/pySoftMC.cpp') diff --git a/sources/api/platform.h b/sources/api/platform.h index f79e319..23a3a47 100644 --- a/sources/api/platform.h +++ b/sources/api/platform.h @@ -4,7 +4,7 @@ #include #ifdef PYSMC -#include "ext/pybind11/include/pybind11/pybind11.h" +#include namespace py = pybind11; #endif diff --git a/sources/api/pySoftMC/pySoftMC.cpp b/sources/api/pySoftMC/pySoftMC.cpp index 6f01620..f8be72e 100644 --- a/sources/api/pySoftMC/pySoftMC.cpp +++ b/sources/api/pySoftMC/pySoftMC.cpp @@ -2,7 +2,7 @@ #include "instruction.h" #include "prog.h" -#include "ext/pybind11/include/pybind11/pybind11.h" +#include namespace py = pybind11; PYBIND11_MODULE(pySoftMC, m) -- cgit v1.2.3 From a22b6dbc4d93a568d608995e02f5e84d34461a1c Mon Sep 17 00:00:00 2001 From: Gus Smith Date: Fri, 29 May 2026 11:38:11 -0700 Subject: Update bindings --- sources/api/pySoftMC/pySoftMC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sources/api/pySoftMC/pySoftMC.cpp') diff --git a/sources/api/pySoftMC/pySoftMC.cpp b/sources/api/pySoftMC/pySoftMC.cpp index f8be72e..fe81ff2 100644 --- a/sources/api/pySoftMC/pySoftMC.cpp +++ b/sources/api/pySoftMC/pySoftMC.cpp @@ -49,8 +49,8 @@ PYBIND11_MODULE(pySoftMC, m) m.def("SMC_ACT", &SMC_ACT, py::arg("bar"), py::arg("ibar"), py::arg("rar"), py::arg("irar"), py::arg("rank") = 0); m.def("SMC_SEL_CH", &SMC_SEL_CH, py::arg("channel"), py::arg("pseudo_channel") = 0); - m.def("SMC_REF", &SMC_REF); - m.def("SMC_NOP", &SMC_NOP); + m.def("SMC_REF", &SMC_REF, py::arg("rank") = 0); + m.def("SMC_NOP", &SMC_NOP, py::arg("rank") = 0); m.def("SMC_SRE", &SMC_SRE); m.def("SMC_SRX", &SMC_SRX); -- cgit v1.2.3