diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-18 19:22:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-18 19:22:46 +0200 |
commit | 1e8e873c9fe4b0fdd69055b0251f9e71db3849c5 (patch) | |
tree | 9d5f37bc5c5f6c9442bbb92948dd1da675890211 /gui | |
parent | 060be78c09fd4416c6778a5828fb573b2a42cb2e (diff) | |
parent | a346793c19f7b14772d6620fa67d8b21cf79ae45 (diff) | |
download | nextpnr-1e8e873c9fe4b0fdd69055b0251f9e71db3849c5.tar.gz nextpnr-1e8e873c9fe4b0fdd69055b0251f9e71db3849c5.tar.bz2 nextpnr-1e8e873c9fe4b0fdd69055b0251f9e71db3849c5.zip |
Merge pull request #53 from YosysHQ/archattr
Add Attributes on arch objects and improve iCE40 gfx (IO tiles, BRAM tiles)
Diffstat (limited to 'gui')
-rw-r--r-- | gui/designwidget.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 896ef071..1b0e617e 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -411,6 +411,11 @@ void DesignWidget::onSelectionChanged(const QItemSelection &, const QItemSelecti addProperty(topItem, QVariant::String, "Conflicting Cell", ctx->nameOf(ctx->getConflictingBelCell(bel)),
ElementType::CELL);
+ QtProperty *attrsItem = addSubGroup(topItem, "Attributes");
+ for (auto &item : ctx->getBelAttrs(bel)) {
+ addProperty(attrsItem, QVariant::String, item.first.c_str(ctx), item.second.c_str());
+ }
+
QtProperty *belpinsItem = addSubGroup(topItem, "Ports");
for (const auto &item : ctx->getBelPins(bel)) {
QtProperty *portInfoItem = addSubGroup(belpinsItem, item.c_str(ctx));
@@ -433,6 +438,11 @@ void DesignWidget::onSelectionChanged(const QItemSelection &, const QItemSelecti addProperty(topItem, QVariant::String, "Conflicting Net", ctx->nameOf(ctx->getConflictingWireNet(wire)),
ElementType::NET);
+ QtProperty *attrsItem = addSubGroup(topItem, "Attributes");
+ for (auto &item : ctx->getWireAttrs(wire)) {
+ addProperty(attrsItem, QVariant::String, item.first.c_str(ctx), item.second.c_str());
+ }
+
DelayInfo delay = ctx->getWireDelay(wire);
QtProperty *delayItem = addSubGroup(topItem, "Delay");
@@ -492,6 +502,11 @@ void DesignWidget::onSelectionChanged(const QItemSelection &, const QItemSelecti addProperty(topItem, QVariant::String, "Dest Wire", ctx->getWireName(ctx->getPipDstWire(pip)).c_str(ctx),
ElementType::WIRE);
+ QtProperty *attrsItem = addSubGroup(topItem, "Attributes");
+ for (auto &item : ctx->getPipAttrs(pip)) {
+ addProperty(attrsItem, QVariant::String, item.first.c_str(ctx), item.second.c_str());
+ }
+
DelayInfo delay = ctx->getPipDelay(pip);
QtProperty *delayItem = addSubGroup(topItem, "Delay");
|