aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch_pybindings.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-06-09 20:05:20 +0100
committergatecat <gatecat@ds0.me>2022-06-09 20:05:20 +0100
commiteac864ebdcdf7cf366e0dcbd5497e3c5cce3c479 (patch)
tree268ff33262b7ca1d1aab0af55ccab985dbe20a8b /ecp5/arch_pybindings.cc
parentaeece7d2788ce667c5eca8b321f4043a13e53950 (diff)
downloadnextpnr-eac864ebdcdf7cf366e0dcbd5497e3c5cce3c479.tar.gz
nextpnr-eac864ebdcdf7cf366e0dcbd5497e3c5cce3c479.tar.bz2
nextpnr-eac864ebdcdf7cf366e0dcbd5497e3c5cce3c479.zip
ecp5: Bind write_bitstream to Python
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'ecp5/arch_pybindings.cc')
-rw-r--r--ecp5/arch_pybindings.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ecp5/arch_pybindings.cc b/ecp5/arch_pybindings.cc
index 593feb33..693d3199 100644
--- a/ecp5/arch_pybindings.cc
+++ b/ecp5/arch_pybindings.cc
@@ -23,6 +23,7 @@
#include "arch_pybindings.h"
#include "nextpnr.h"
#include "pybindings.h"
+#include "bitstream.h"
NEXTPNR_NAMESPACE_BEGIN
@@ -69,6 +70,8 @@ void arch_wrap_python(py::module &m)
WRAP_MAP_UPTR(m, CellMap, "IdCellMap");
WRAP_MAP_UPTR(m, NetMap, "IdNetMap");
WRAP_MAP(m, HierarchyMap, wrap_context<HierarchicalCell &>, "HierarchyMap");
+
+ m.def("write_bitstream", &write_bitstream);
}
NEXTPNR_NAMESPACE_END