mirror of https://github.com/YosysHQ/nextpnr.git
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);
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue