aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-01 15:18:18 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-02 13:48:28 +0200
commitf353453a7faa8c7fa87acfac161cdcbebfae04d1 (patch)
tree9d3a92c9b1dfdc8f983b4075b7585c08e9025630 /common
parenta7415bfbc34d1c0aae6ca0843600e88cded23b1c (diff)
downloadnextpnr-f353453a7faa8c7fa87acfac161cdcbebfae04d1.tar.gz
nextpnr-f353453a7faa8c7fa87acfac161cdcbebfae04d1.tar.bz2
nextpnr-f353453a7faa8c7fa87acfac161cdcbebfae04d1.zip
Add architecture specific Python defs
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common')
-rw-r--r--common/pybindings.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc
index 0990c00c..22c06c2e 100644
--- a/common/pybindings.cc
+++ b/common/pybindings.cc
@@ -84,12 +84,16 @@ struct range_wrapper {
#define WRAP_RANGE(t) range_wrapper<t##Range>().wrap(#t "Range", #t "Iterator")
+// Architecture-specific bindings should be created in the below function, which must be implemented in all
+// architectures
+void arch_wrap_python();
+
BOOST_PYTHON_MODULE (MODULE_NAME) {
// From Chip.h
- class_<ChipArgs>("ChipArgs");
WRAP_RANGE(Bels);
WRAP_RANGE(AllWires);
WRAP_RANGE(WireDelay);
WRAP_RANGE(BelPin);
+ arch_wrap_python();
}