diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-22 20:37:54 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-22 20:37:54 +0200 |
commit | 7f473f5199fbf26c8e2bdf43b19ea6ab84c8e021 (patch) | |
tree | ac5a267133babef367692557349b2f2b2144da43 /gui/designwidget.cc | |
parent | b9c413a5aa06a325de5c55e254441aee58143676 (diff) | |
download | nextpnr-7f473f5199fbf26c8e2bdf43b19ea6ab84c8e021.tar.gz nextpnr-7f473f5199fbf26c8e2bdf43b19ea6ab84c8e021.tar.bz2 nextpnr-7f473f5199fbf26c8e2bdf43b19ea6ab84c8e021.zip |
Added Bel port info to GUI
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r-- | gui/designwidget.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index c571e303..91ec5163 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -497,6 +497,14 @@ void DesignWidget::onItemSelectionChanged() addProperty(topItem, QVariant::String, "Conflicting Cell", ctx->getConflictingBelCell(bel).c_str(ctx),
ElementType::CELL);
+ QtProperty *belpinsItem = addSubGroup(topItem, "Ports");
+ for (const auto &item : ctx->getBelPins(bel)) {
+ QtProperty *portInfoItem = addSubGroup(belpinsItem, ctx->portPinToId(item).c_str(ctx));
+ addProperty(portInfoItem, QVariant::String, "Name", ctx->portPinToId(item).c_str(ctx));
+ addProperty(portInfoItem, QVariant::Int, "Type", int(ctx->getBelPinType(bel, item)));
+ WireId wire = ctx->getBelPinWire(bel, item);
+ addProperty(portInfoItem, QVariant::String, "Wire", ctx->getWireName(wire).c_str(ctx), ElementType::WIRE);
+ }
} else if (type == ElementType::WIRE) {
WireId wire = ctx->getWireByName(c);
QtProperty *topItem = addTopLevelProperty("Wire");
|