From 9185c85a5434d7fded49397ecd9eee646140e942 Mon Sep 17 00:00:00 2001 From: Erika Date: Sun, 26 Jan 2020 19:59:18 +0000 Subject: python: Expose PlaceStrength enum and isValidBelForCell on ecp5 Signed-off-by: Erika --- ecp5/arch_pybindings.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ecp5') diff --git a/ecp5/arch_pybindings.cc b/ecp5/arch_pybindings.cc index cd5e31c3..951745af 100644 --- a/ecp5/arch_pybindings.cc +++ b/ecp5/arch_pybindings.cc @@ -46,6 +46,9 @@ 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 AliasMap; -- cgit v1.2.3