diff options
author | Erika <rrika9@yahoo.com> | 2020-01-26 19:59:18 +0000 |
---|---|---|
committer | Erika <rrika9@yahoo.com> | 2020-01-26 20:32:02 +0000 |
commit | 9185c85a5434d7fded49397ecd9eee646140e942 (patch) | |
tree | f1b99f5804b2310fa22005a1b8e14222a53779cd /ecp5 | |
parent | 3b5e64e8c60d01f9aa3b2463b1bb73776072abf8 (diff) | |
download | nextpnr-9185c85a5434d7fded49397ecd9eee646140e942.tar.gz nextpnr-9185c85a5434d7fded49397ecd9eee646140e942.tar.bz2 nextpnr-9185c85a5434d7fded49397ecd9eee646140e942.zip |
python: Expose PlaceStrength enum and isValidBelForCell on ecp5
Signed-off-by: Erika <rrika9@yahoo.com>
Diffstat (limited to 'ecp5')
-rw-r--r-- | ecp5/arch_pybindings.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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<Context, decltype(&Context::isValidBelForCell), &Context::isValidBelForCell, pass_through<bool>, + addr_and_unwrap<CellInfo>, conv_from_str<BelId>>::def_wrap(ctx_cls, "isValidBelForCell"); + 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; |