aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-23 19:51:22 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-23 19:51:22 +0200
commit37bad1f99ed8c50cd815b588341a5b0fc4200af0 (patch)
treebc4e86e1046d06a4145e6b6763e0cd0fd736bc66 /ice40
parent3407d7638313ec6bb989088c81a30f99e8ec94b1 (diff)
downloadnextpnr-37bad1f99ed8c50cd815b588341a5b0fc4200af0.tar.gz
nextpnr-37bad1f99ed8c50cd815b588341a5b0fc4200af0.tar.bz2
nextpnr-37bad1f99ed8c50cd815b588341a5b0fc4200af0.zip
Fixing the Python bindings following Context/Arch refactoring
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/pybindings.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/pybindings.cc b/ice40/pybindings.cc
index 4c707e65..bb591289 100644
--- a/ice40/pybindings.cc
+++ b/ice40/pybindings.cc
@@ -53,7 +53,7 @@ void arch_wrap_python()
;
#undef X
- class_<Arch>("Arch", init<ArchArgs>())
+ class_<Arch, Arch *, bases<BaseCtx>>("Arch", init<ArchArgs>())
.def("getBelByName", &Arch::getBelByName)
.def("getWireByName", &Arch::getWireByName)
.def("getBelName", &Arch::getBelName)
@@ -85,4 +85,4 @@ void arch_wrap_python()
NEXTPNR_NAMESPACE_END
-#endif // NO_PYTHON \ No newline at end of file
+#endif // NO_PYTHON