Skip to content

Commit

Permalink
gui: report zero delay & time for ideal clock
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Koucher <arthurckoucher@gmail.com>
  • Loading branch information
AcKoucher committed Jan 18, 2024
1 parent 27b6c80 commit 14e7744
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/gui/src/staGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,21 @@ QVariant TimingPathDetailModel::data(const QModelIndex& index, int role) const
}
const auto& node = nodes_->at(start_idx);

float time = node->getArrival();
float delay = node->getArrival() - nodes_->at(0)->getArrival();

if (sta_->isIdealClock(node->getPinAsSTA())) {
time = 0.0f;
delay = 0.0f;
}

switch (col_index) {
case Pin:
return "clock network delay";
case Time:
return convertDelay(node->getArrival(), time_units);
return convertDelay(time, time_units);
case Delay:
return convertDelay(node->getArrival() - nodes_->at(0)->getArrival(),
time_units);
return convertDelay(delay, time_units);
default:
return QVariant();
}
Expand Down

0 comments on commit 14e7744

Please sign in to comment.