diff options
author | David Shah <dave@ds0.me> | 2021-02-02 09:59:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 09:59:18 +0000 |
commit | efc98c517eb1d2eb4a8ecc2ae82e770aaa1a0edd (patch) | |
tree | 91e54daa7324b19dd1546e86160d57bdb3425e0d /ice40 | |
parent | 7d0b134b483120869152b09800fdf4d9087da39e (diff) | |
parent | 5cf2f8d1ea60537f0c2061451b83e8eb2ba3eefa (diff) | |
download | nextpnr-efc98c517eb1d2eb4a8ecc2ae82e770aaa1a0edd.tar.gz nextpnr-efc98c517eb1d2eb4a8ecc2ae82e770aaa1a0edd.tar.bz2 nextpnr-efc98c517eb1d2eb4a8ecc2ae82e770aaa1a0edd.zip |
Merge pull request #563 from litghost/seperate_pip_range_types
Seperate PipRange types in pybindings_shared.
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/arch_pybindings.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ice40/arch_pybindings.cc b/ice40/arch_pybindings.cc index 9011d1dc..921956e8 100644 --- a/ice40/arch_pybindings.cc +++ b/ice40/arch_pybindings.cc @@ -72,6 +72,9 @@ void arch_wrap_python(py::module &m) readonly_wrapper<BelPin, decltype(&BelPin::bel), &BelPin::bel, conv_to_str<BelId>>::def_wrap(belpin_cls, "bel"); readonly_wrapper<BelPin, decltype(&BelPin::pin), &BelPin::pin, conv_to_str<IdString>>::def_wrap(belpin_cls, "pin"); + typedef const PipRange UphillPipRange; + typedef const PipRange DownhillPipRange; + #include "arch_pybindings_shared.h" WRAP_RANGE(m, Bel, conv_to_str<BelId>); @@ -80,6 +83,7 @@ void arch_wrap_python(py::module &m) WRAP_RANGE(m, Pip, conv_to_str<PipId>); WRAP_RANGE(m, BelPin, wrap_context<BelPin>); + WRAP_MAP_UPTR(m, CellMap, "IdCellMap"); WRAP_MAP_UPTR(m, NetMap, "IdNetMap"); WRAP_MAP(m, HierarchyMap, wrap_context<HierarchicalCell &>, "HierarchyMap"); |