diff options
author | Eddie Hung <eddie.hung+gitlab@gmail.com> | 2018-07-21 20:08:53 +0000 |
---|---|---|
committer | Eddie Hung <eddie.hung+gitlab@gmail.com> | 2018-07-21 20:08:53 +0000 |
commit | eeb93d6eda613c0946867118c1ff93f2462e417f (patch) | |
tree | ee25b6376879c7add61b02a73a882d8518353afe /gui/designwidget.cc | |
parent | 1f6897733b57f03cf7f5ccab46c27de811d42167 (diff) | |
parent | 926c186ec78efb086364a05ba7e83e68fa116301 (diff) | |
download | nextpnr-eeb93d6eda613c0946867118c1ff93f2462e417f.tar.gz nextpnr-eeb93d6eda613c0946867118c1ff93f2462e417f.tar.bz2 nextpnr-eeb93d6eda613c0946867118c1ff93f2462e417f.zip |
Merge branch 'redist_slack' into 'redist_slack'
Redist slack
See merge request SymbioticEDA/nextpnr!14
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r-- | gui/designwidget.cc | 19 |
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();
|