diff options
author | David Shah <davey1576@gmail.com> | 2018-06-02 13:33:45 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-02 13:48:28 +0200 |
commit | 363ddd0f3c6e1e2f9e5caf2851ffcacf32765437 (patch) | |
tree | cdba5841cdcbfe126dfd088b8bf6906d33fd4282 /ice40 | |
parent | d3f74eb0567b557f261018131a04ab5eed3ddb7e (diff) | |
download | nextpnr-363ddd0f3c6e1e2f9e5caf2851ffcacf32765437.tar.gz nextpnr-363ddd0f3c6e1e2f9e5caf2851ffcacf32765437.tar.bz2 nextpnr-363ddd0f3c6e1e2f9e5caf2851ffcacf32765437.zip |
Python bindings working on both architectures
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/pybindings.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ice40/pybindings.cc b/ice40/pybindings.cc index a1906366..2dd558d1 100644 --- a/ice40/pybindings.cc +++ b/ice40/pybindings.cc @@ -20,15 +20,7 @@ #include "design.h" #include "chip.h" -#include <utility> -#include <stdexcept> -#include <boost/python.hpp> -#include <boost/python/enum.hpp> -#include <boost/python/suite/indexing/vector_indexing_suite.hpp> -#include <boost/python/suite/indexing/map_indexing_suite.hpp> -#include <boost/python/suite/indexing/map_indexing_suite.hpp> - -using namespace boost::python; +#include "pybindings.h" void arch_wrap_python() { class_<ChipArgs>("ChipArgs") @@ -60,5 +52,6 @@ void arch_wrap_python() { .def("getBels", &Chip::getBels) .def("getWires", &Chip::getWires); + WRAP_RANGE(AllWire); } |