From ec60542ffda95bb040ab08792a82ae5a14be344e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 23 Nov 2023 08:59:23 +0100 Subject: [PATCH] create wiremap for himbaechel arch --- gui/designwidget.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gui/designwidget.cc b/gui/designwidget.cc index fb9086dd..bc101d80 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -328,6 +328,13 @@ void DesignWidget::newContext(Context *ctx) WireInfo wi = ctx->wire_info(wire); wireMap[std::pair(wi.x, wi.y)].push_back(wire); } +#endif +#ifdef ARCH_HIMBAECHEL + for (const auto &wire : ctx->getWires()) { + Loc loc; + tile_xy(ctx->chip_info, wire.tile, loc.x, loc.y); + wireMap[std::pair(loc.x, loc.y)].push_back(wire); + } #endif auto wireGetter = [](Context *ctx, WireId id) { return ctx->getWireName(id); }; getTreeByElementType(ElementType::WIRE)