From 9ade2d1877d1fc68d92be06f74bc95f70f1c5a33 Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 25 Jun 2025 18:37:17 +0200 Subject: [PATCH] himbaechel: Add Python binding for get_tile_wire_range Signed-off-by: gatecat --- himbaechel/arch_pybindings.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/himbaechel/arch_pybindings.cc b/himbaechel/arch_pybindings.cc index 3825670b..1acc5a4c 100644 --- a/himbaechel/arch_pybindings.cc +++ b/himbaechel/arch_pybindings.cc @@ -52,6 +52,10 @@ void arch_wrap_python(py::module &m) readonly_wrapper>::def_wrap(belpin_cls, "bel"); readonly_wrapper>::def_wrap(belpin_cls, "pin"); + // Useful for debugging routing database + fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "get_tile_wire_range"); + typedef const std::vector &BelBucketRange; typedef const std::vector &BelRangeForBelBucket; #include "arch_pybindings_shared.h" @@ -63,6 +67,8 @@ void arch_wrap_python(py::module &m) WRAP_RANGE(m, DownhillPip, conv_to_str); WRAP_RANGE(m, BelPin, wrap_context); + WRAP_RANGE(m, TileWire, conv_to_str); + WRAP_MAP_UPTR(m, CellMap, "IdCellMap"); WRAP_MAP_UPTR(m, NetMap, "IdNetMap"); WRAP_MAP(m, HierarchyMap, wrap_context, "HierarchyMap");