Skip to content

Commit

Permalink
Merge branch 'The-OpenROAD-Project:master' into ng_arian136
Browse files Browse the repository at this point in the history
  • Loading branch information
andyfox-rushc authored Oct 14, 2024
2 parents 7603832 + 7a67188 commit 0be2610
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/gui/src/chartsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ SlackHistogramData ChartsWidget::fetchSlackHistogramData()
StaPins end_points = stagui_->getEndPoints();
removeUnconstrainedPinsAndSetLimits(end_points);

data.constrained_pins = end_points;
data.constrained_pins = std::move(end_points);

for (sta::Clock* clock : *stagui_->getClocks()) {
data.clocks.insert(clock);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/src/staDescriptors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Descriptor::Properties LibertyLibraryDescriptor::getProperties(
for (auto* corner : *sta_->corners()) {
for (const sta::MinMax* min_max :
{sta::MinMax::min(), sta::MinMax::max()}) {
const auto libs = corner->libertyLibraries(min_max);
const auto& libs = corner->libertyLibraries(min_max);
if (std::find(libs.begin(), libs.end(), library) != libs.end()) {
corners.insert(gui->makeSelected(corner));
}
Expand Down
15 changes: 7 additions & 8 deletions src/gui/src/staGuiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,8 +1036,13 @@ TimingPathList STAGuiInterface::getTimingPaths(
sta::RiseFallBoth::riseFall());
}

sta::Search* search = sta_->search();
std::unique_ptr<sta::PathGroupNameSet> group_names;
if (!path_group_name.empty()) {
group_names = std::make_unique<sta::PathGroupNameSet>();
group_names->insert(path_group_name.c_str());
}

sta::Search* search = sta_->search();
sta::PathEndSeq path_ends
= search->findPathEnds( // from, thrus, to, unconstrained
e_from,
Expand All @@ -1054,7 +1059,7 @@ TimingPathList STAGuiInterface::getTimingPaths(
-sta::INF,
sta::INF, // slack_min, slack_max,
true, // sort_by_slack
nullptr, // group_names
group_names.get(),
// setup, hold, recovery, removal,
use_max_,
!use_max_,
Expand All @@ -1064,13 +1069,7 @@ TimingPathList STAGuiInterface::getTimingPaths(
false,
false);

sta::PathGroup* path_group
= search->findPathGroup(path_group_name.c_str(), sta::MinMax::max());
for (auto& path_end : path_ends) {
if (path_group && path_group != search->pathGroup(path_end)) {
continue;
}

TimingPath* timing_path = new TimingPath();
sta::Path* path = path_end->path();

Expand Down

0 comments on commit 0be2610

Please sign in to comment.