Skip to content

Commit 4bf8123

Browse files
committed
gpl: routability fixes
Signed-off-by: LucasYuki <[email protected]>
1 parent 46090e5 commit 4bf8123

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/gpl/src/routeBase.cpp

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ RouteBase::RouteBase(RouteBaseVars rbVars,
250250
nbc_ = std::move(nbc);
251251
log_ = log;
252252
nbVec_ = std::move(nbVec);
253-
minRcTargetDensity_.resize(nbVec.size());
254-
inflatedAreaDelta_.resize(nbVec.size());
253+
minRcTargetDensity_.resize(nbVec_.size());
254+
inflatedAreaDelta_.resize(nbVec_.size());
255255
init();
256256
}
257257

@@ -272,16 +272,18 @@ void RouteBase::revertToMinCongestion()
272272
"iteration with "
273273
"minimum observed routing congestion.");
274274
log_->info(GPL, 56, "Minimum observed routing congestion: {:.4f}", minRc_);
275-
log_->info(GPL, 57, "Target density at minimum routing congestion:");
276275

277276
// revert
278277
nbc_->revertGCellSizeToMinRc();
279278
for (int j = 0; j < nbVec_.size(); j++) {
280-
log_->info(GPL,
281-
58,
282-
"\t{}\t: {:.4f}",
283-
nbVec_[j]->group()->getName(),
284-
minRcTargetDensity_[j]);
279+
if (nbVec_[j]->group()) {
280+
log_->info(GPL, 57, "Target density at minimum routing congestion: {:.4f} ({})",
281+
minRcTargetDensity_[j],
282+
nbVec_[j]->group() ? "" : nbVec_[j]->group()->getName());
283+
} else {
284+
log_->info(GPL, 58, "Target density at minimum routing congestion: {:.4f}",
285+
minRcTargetDensity_[j]);
286+
}
285287
nbVec_[j]->setTargetDensity(minRcTargetDensity_[j]);
286288
nbVec_[j]->restoreRemovedFillers();
287289
nbVec_[j]->updateDensitySize();
@@ -738,9 +740,10 @@ std::pair<bool, bool> RouteBase::routability(
738740
if (nbVec_[i]->getTargetDensity() > rbVars_.maxDensity) {
739741
log_->info(GPL,
740742
53,
741-
"Target density {:.4f} exceeds the maximum allowed {:.4f}.",
743+
"Target density {:.4f} exceeds the maximum allowed {:.4f} in group {}.",
742744
nbVec_[i]->getTargetDensity(),
743-
rbVars_.maxDensity);
745+
rbVars_.maxDensity,
746+
nbVec_[i]->group()->getName());
744747

745748
revertToMinCongestion();
746749
return std::make_pair(false, true);

0 commit comments

Comments
 (0)