aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-01 10:23:21 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-01 10:23:21 -0800
commit5cf2f8d1ea60537f0c2061451b83e8eb2ba3eefa (patch)
tree43bd80c5377b60d55506ec0b0fcb4441ad8a798d /ice40
parent15b2852b916c1299dfc1d91a217de3060701bfbe (diff)
downloadnextpnr-5cf2f8d1ea60537f0c2061451b83e8eb2ba3eefa.tar.gz
nextpnr-5cf2f8d1ea60537f0c2061451b83e8eb2ba3eefa.tar.bz2
nextpnr-5cf2f8d1ea60537f0c2061451b83e8eb2ba3eefa.zip
Seperate PipRange types in pybindings_shared.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/arch_pybindings.cc4
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");