aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.cc
diff options
context:
space:
mode:
authorEddie Hung <e.hung@imperial.ac.uk>2018-07-21 12:27:44 -0700
committerEddie Hung <e.hung@imperial.ac.uk>2018-07-21 12:27:44 -0700
commit31c9fd28fe59902311d61519537eae06f0f915d0 (patch)
treebdf5cb28dda96dadd92f62f88f8b0ecf1b2cb887 /gui/designwidget.cc
parentf176ee48cdd6b508f6f26e7b2ccca97a680929cf (diff)
parentdfdeb21690181044a95c2b2d64c197c999507b0c (diff)
downloadnextpnr-31c9fd28fe59902311d61519537eae06f0f915d0.tar.gz
nextpnr-31c9fd28fe59902311d61519537eae06f0f915d0.tar.bz2
nextpnr-31c9fd28fe59902311d61519537eae06f0f915d0.zip
Merge remote-tracking branch 'origin/master' into redist_slack
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r--gui/designwidget.cc19
1 files changed, 14 insertions, 5 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc
index f7ae82f5..a59307f0 100644
--- a/gui/designwidget.cc
+++ b/gui/designwidget.cc
@@ -507,6 +507,14 @@ void DesignWidget::onItemSelectionChanged()
addProperty(topItem, QVariant::String, "Conflicting Net", ctx->getConflictingWireNet(wire).c_str(ctx),
ElementType::NET);
+ DelayInfo delay = ctx->getWireDelay(wire);
+
+ QtProperty *delayItem = addSubGroup(topItem, "Delay");
+ addProperty(delayItem, QVariant::Double, "Min Raise", delay.minRaiseDelay());
+ addProperty(delayItem, QVariant::Double, "Max Raise", delay.maxRaiseDelay());
+ addProperty(delayItem, QVariant::Double, "Min Fall", delay.minFallDelay());
+ addProperty(delayItem, QVariant::Double, "Max Fall", delay.maxFallDelay());
+
QtProperty *belpinItem = addSubGroup(topItem, "BelPin Uphill");
BelPin uphill = ctx->getBelPinUphill(wire);
if (uphill.bel != BelId())
@@ -529,7 +537,7 @@ void DesignWidget::onItemSelectionChanged()
}
int counter = 0;
- QtProperty *pipsDownItem = addSubGroup(downhillItem, "Pips Downhill");
+ QtProperty *pipsDownItem = addSubGroup(topItem, "Pips Downhill");
for (const auto &item : ctx->getPipsDownhill(wire)) {
addProperty(pipsDownItem, QVariant::String, "", ctx->getPipName(item).c_str(ctx), ElementType::PIP);
counter++;
@@ -540,7 +548,7 @@ void DesignWidget::onItemSelectionChanged()
}
counter = 0;
- QtProperty *pipsUpItem = addSubGroup(downhillItem, "Pips Uphill");
+ QtProperty *pipsUpItem = addSubGroup(topItem, "Pips Uphill");
for (const auto &item : ctx->getPipsUphill(wire)) {
addProperty(pipsUpItem, QVariant::String, "", ctx->getPipName(item).c_str(ctx), ElementType::PIP);
counter++;
@@ -566,9 +574,10 @@ void DesignWidget::onItemSelectionChanged()
DelayInfo delay = ctx->getPipDelay(pip);
QtProperty *delayItem = addSubGroup(topItem, "Delay");
- addProperty(delayItem, QVariant::Double, "Raise", delay.raiseDelay());
- addProperty(delayItem, QVariant::Double, "Fall", delay.fallDelay());
- addProperty(delayItem, QVariant::Double, "Average", delay.avgDelay());
+ addProperty(delayItem, QVariant::Double, "Min Raise", delay.minRaiseDelay());
+ addProperty(delayItem, QVariant::Double, "Max Raise", delay.maxRaiseDelay());
+ addProperty(delayItem, QVariant::Double, "Min Fall", delay.minFallDelay());
+ addProperty(delayItem, QVariant::Double, "Max Fall", delay.maxFallDelay());
} else if (type == ElementType::NET) {
NetInfo *net = ctx->nets.at(c).get();