From 363ddd0f3c6e1e2f9e5caf2851ffcacf32765437 Mon Sep 17 00:00:00 2001 From: David Shah Date: Sat, 2 Jun 2018 13:33:45 +0200 Subject: Python bindings working on both architectures Signed-off-by: David Shah --- ice40/pybindings.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'ice40') 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 -#include -#include -#include -#include -#include -#include - -using namespace boost::python; +#include "pybindings.h" void arch_wrap_python() { class_("ChipArgs") @@ -60,5 +52,6 @@ void arch_wrap_python() { .def("getBels", &Chip::getBels) .def("getWires", &Chip::getWires); + WRAP_RANGE(AllWire); } -- cgit v1.2.3