diff options
author | YRabbit <rabbit@yrabbit.cyou> | 2022-02-04 09:03:36 +1000 |
---|---|---|
committer | YRabbit <rabbit@yrabbit.cyou> | 2022-02-04 09:03:36 +1000 |
commit | eb5d3b3197b18b9bc3990dac85faee63f17f3f16 (patch) | |
tree | 71bb36fd895b888c1a01ea044b3ad4587d07ce9d /gui/designwidget.cc | |
parent | 604260a0d7344627cea82198512384319c705105 (diff) | |
parent | 5007cd3603d71f10924bb97acfe42d50d2ebcbd4 (diff) | |
download | nextpnr-eb5d3b3197b18b9bc3990dac85faee63f17f3f16.tar.gz nextpnr-eb5d3b3197b18b9bc3990dac85faee63f17f3f16.tar.bz2 nextpnr-eb5d3b3197b18b9bc3990dac85faee63f17f3f16.zip |
Merge branch 'master' into diff-locations
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r-- | gui/designwidget.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 749c25a6..bd2578de 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -318,6 +318,12 @@ void DesignWidget::newContext(Context *ctx) wireMap[std::pair<int, int>(wire.location.x, wire.location.y)].push_back(wire);
}
#endif
+#ifdef ARCH_GOWIN
+ for (const auto &wire : ctx->getWires()) {
+ WireInfo wi = ctx->wire_info(wire);
+ wireMap[std::pair<int, int>(wi.x, wi.y)].push_back(wire);
+ }
+#endif
auto wireGetter = [](Context *ctx, WireId id) { return ctx->getWireName(id); };
getTreeByElementType(ElementType::WIRE)
->loadData(ctx,
|