From d4aac6586cc463bb14195289b510866ebe5e4092 Mon Sep 17 00:00:00 2001 From: gatecat Date: Thu, 15 Apr 2021 10:00:45 +0100 Subject: [PATCH] Add Python bindings for placement tests Signed-off-by: gatecat --- common/arch_pybindings_shared.h | 3 +++ fpga_interchange/arch_pybindings.cc | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/common/arch_pybindings_shared.h b/common/arch_pybindings_shared.h index ef355a54..69d7025f 100644 --- a/common/arch_pybindings_shared.h +++ b/common/arch_pybindings_shared.h @@ -116,6 +116,9 @@ fn_wrapper_0a, pass_through>::def_wrap(ctx_cls, "writeSVG"); +fn_wrapper_1a, + conv_from_str>::def_wrap(ctx_cls, "isBelLocationValid"); + // const\_range\ getBelBuckets() const fn_wrapper_0a>::def_wrap(ctx_cls, "getBelBuckets"); diff --git a/fpga_interchange/arch_pybindings.cc b/fpga_interchange/arch_pybindings.cc index 4fddad93..68619866 100644 --- a/fpga_interchange/arch_pybindings.cc +++ b/fpga_interchange/arch_pybindings.cc @@ -44,6 +44,11 @@ void arch_wrap_python(py::module &m) .def("place", &Context::place) .def("route", &Context::route); + fn_wrapper_0a_v::def_wrap( + ctx_cls, "remove_site_routing"); + fn_wrapper_1a_v>::def_wrap(ctx_cls, "explain_bel_status"); + typedef std::unordered_map> CellMap; typedef std::unordered_map> NetMap; typedef std::unordered_map AliasMap;