create wiremap for himbaechel arch
This commit is contained in:
parent
1ec8e411d7
commit
ec60542ffd
@ -328,6 +328,13 @@ void DesignWidget::newContext(Context *ctx)
|
|||||||
WireInfo wi = ctx->wire_info(wire);
|
WireInfo wi = ctx->wire_info(wire);
|
||||||
wireMap[std::pair<int, int>(wi.x, wi.y)].push_back(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
|
#endif
|
||||||
auto wireGetter = [](Context *ctx, WireId id) { return ctx->getWireName(id); };
|
auto wireGetter = [](Context *ctx, WireId id) { return ctx->getWireName(id); };
|
||||||
getTreeByElementType(ElementType::WIRE)
|
getTreeByElementType(ElementType::WIRE)
|
||||||
|
Loading…
Reference in New Issue
Block a user