aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/arch_pybindings.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-04-15 10:00:45 +0100
committergatecat <gatecat@ds0.me>2021-04-15 10:00:45 +0100
commitd4aac6586cc463bb14195289b510866ebe5e4092 (patch)
tree21567c5f7a7ada3ff810e52b3830d8bb9b6eb207 /fpga_interchange/arch_pybindings.cc
parent8f5185c3814f5fcf90aa33b07b99568d465bb5cd (diff)
downloadnextpnr-d4aac6586cc463bb14195289b510866ebe5e4092.tar.gz
nextpnr-d4aac6586cc463bb14195289b510866ebe5e4092.tar.bz2
nextpnr-d4aac6586cc463bb14195289b510866ebe5e4092.zip
Add Python bindings for placement tests
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'fpga_interchange/arch_pybindings.cc')
-rw-r--r--fpga_interchange/arch_pybindings.cc5
1 files changed, 5 insertions, 0 deletions
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<Context, decltype(&Context::remove_site_routing), &Context::remove_site_routing>::def_wrap(
+ ctx_cls, "remove_site_routing");
+ fn_wrapper_1a_v<Context, decltype(&Context::explain_bel_status), &Context::explain_bel_status,
+ conv_from_str<BelId>>::def_wrap(ctx_cls, "explain_bel_status");
+
typedef std::unordered_map<IdString, std::unique_ptr<CellInfo>> CellMap;
typedef std::unordered_map<IdString, std::unique_ptr<NetInfo>> NetMap;
typedef std::unordered_map<IdString, IdString> AliasMap;