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