From 929a1cc7e4b0327e75212e4cabd6a60ef21ea1d9 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 27 Jun 2020 13:24:30 +0200 Subject: Make python bindings consistent --- ice40/arch_pybindings.cc | 5 ++++- ice40/arch_pybindings.h | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ice40/arch_pybindings.cc b/ice40/arch_pybindings.cc index e2022091..88065065 100644 --- a/ice40/arch_pybindings.cc +++ b/ice40/arch_pybindings.cc @@ -57,10 +57,13 @@ void arch_wrap_python() .def("place", &Context::place) .def("route", &Context::route); + fn_wrapper_2a, + addr_and_unwrap, conv_from_str>::def_wrap(ctx_cls, "isValidBelForCell"); + typedef std::unordered_map> CellMap; typedef std::unordered_map> NetMap; - typedef std::unordered_map HierarchyMap; typedef std::unordered_map AliasMap; + typedef std::unordered_map HierarchyMap; auto belpin_cls = class_>("BelPin", no_init); readonly_wrapper>::def_wrap(belpin_cls, "bel"); diff --git a/ice40/arch_pybindings.h b/ice40/arch_pybindings.h index 7c15b269..cf343976 100644 --- a/ice40/arch_pybindings.h +++ b/ice40/arch_pybindings.h @@ -23,7 +23,6 @@ #include "nextpnr.h" #include "pybindings.h" -#include "pywrappers.h" NEXTPNR_NAMESPACE_BEGIN -- cgit v1.2.3