create wiremap for himbaechel arch

This commit is contained in:
Miodrag Milanovic 2023-11-23 08:59:23 +01:00 committed by myrtle
parent 1ec8e411d7
commit ec60542ffd

View File

@ -328,6 +328,13 @@ void DesignWidget::newContext(Context *ctx)
WireInfo wi = ctx->wire_info(wire);
wireMap[std::pair<int, int>(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<int, int>(loc.x, loc.y)].push_back(wire);
}
#endif
auto wireGetter = [](Context *ctx, WireId id) { return ctx->getWireName(id); };
getTreeByElementType(ElementType::WIRE)