aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2021-08-19 12:01:49 +0200
committerSylvain Munaut <tnt@246tNt.com>2021-08-19 12:01:49 +0200
commitdf67783dd36260b4c30bd0187d2edab1107942f5 (patch)
tree00114f07f994e145294489a3e67e3a6a215346c0
parentb37d133c43c45862bd5c550b5d7fffaa8c49b968 (diff)
downloadnextpnr-df67783dd36260b4c30bd0187d2edab1107942f5.tar.gz
nextpnr-df67783dd36260b4c30bd0187d2edab1107942f5.tar.bz2
nextpnr-df67783dd36260b4c30bd0187d2edab1107942f5.zip
pybindings: Fix mapping for PortRefVector
This is used by net.users for instance. Removed by mistake in 4ac00af6fadc0405867fdac84229d2cda390c108 Fixes #799 Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--common/pybindings.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc
index 2f672a41..0e087e98 100644
--- a/common/pybindings.cc
+++ b/common/pybindings.cc
@@ -285,6 +285,8 @@ PYBIND11_EMBEDDED_MODULE(MODULE_NAME, m)
WRAP_MAP(m, WireMap, wrap_context<PipMap &>, "WireMap");
WRAP_MAP_UPTR(m, RegionMap, "RegionMap");
+ WRAP_VECTOR(m, PortRefVector, wrap_context<PortRef &>);
+
typedef dict<IdString, ClockFmax> ClockFmaxMap;
WRAP_MAP(m, ClockFmaxMap, pass_through<ClockFmax>, "ClockFmaxMap");