aboutsummaryrefslogtreecommitdiffstats
path: root/generic/arch_pybindings.cc
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-25 11:32:45 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-25 11:32:45 +0100
commit14a501969af0023c7396d41a0116e706c68cf5ed (patch)
treee16a50bf122faed323bce936255e7e09b6201242 /generic/arch_pybindings.cc
parentc554ab1ef01c8cb5f4a35040bc3fce106be03559 (diff)
parente39290b71299843eff858fb51543b99a06178a1d (diff)
downloadnextpnr-14a501969af0023c7396d41a0116e706c68cf5ed.tar.gz
nextpnr-14a501969af0023c7396d41a0116e706c68cf5ed.tar.bz2
nextpnr-14a501969af0023c7396d41a0116e706c68cf5ed.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr into q3k/pll-pads
Diffstat (limited to 'generic/arch_pybindings.cc')
-rw-r--r--generic/arch_pybindings.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/generic/arch_pybindings.cc b/generic/arch_pybindings.cc
index a99723f2..186b2c13 100644
--- a/generic/arch_pybindings.cc
+++ b/generic/arch_pybindings.cc
@@ -20,12 +20,22 @@
#ifndef NO_PYTHON
+#include "arch_pybindings.h"
#include "nextpnr.h"
#include "pybindings.h"
NEXTPNR_NAMESPACE_BEGIN
-void arch_wrap_python() { class_<ArchArgs>("ArchArgs"); }
+void arch_wrap_python()
+{
+ using namespace PythonConversion;
+ auto arch_cls = class_<Arch, Arch *, bases<BaseCtx>, boost::noncopyable>("Arch", init<ArchArgs>());
+ auto ctx_cls = class_<Context, Context *, bases<Arch>, boost::noncopyable>("Context", no_init)
+ .def("checksum", &Context::checksum)
+ .def("pack", &Context::pack)
+ .def("place", &Context::place)
+ .def("route", &Context::route);
+}
NEXTPNR_NAMESPACE_END