diff options
author | gatecat <gatecat@ds0.me> | 2022-02-03 15:27:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 15:27:08 +0000 |
commit | a78719ecc157475213356c210aff26502c372c34 (patch) | |
tree | 415b60ea5983ba0ddedee6ae3f7676897ec4c062 /gui/designwidget.cc | |
parent | 6fceac95c02b16a208dd17123dba46bc3618c1fb (diff) | |
parent | 368299d1437e4476e1ee41450194869e1ac6cf6b (diff) | |
download | nextpnr-a78719ecc157475213356c210aff26502c372c34.tar.gz nextpnr-a78719ecc157475213356c210aff26502c372c34.tar.bz2 nextpnr-a78719ecc157475213356c210aff26502c372c34.zip |
Merge pull request #901 from yrabbit/gowin-gui-noc
gowin: Add GUI.
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,
|