Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#4117 from The-OpenROAD-Projec…
Browse files Browse the repository at this point in the history
…t-staging/pdn-obs-fix

pdn: correct the instance obstruction calculation
  • Loading branch information
maliberty authored Oct 10, 2023
2 parents 3187676 + bebcca3 commit 0dff30d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pdn/src/grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1347,10 +1347,12 @@ ShapeTreeMap InstanceGrid::getInstanceObstructions(
for (auto* ob : master->getObstructions()) {
odb::Rect obs_rect = ob->getBox();

// add min spacing
// add max of min spacing and the halo
auto* layer = ob->getTechLayer();
obs_rect.bloat(layer->getSpacing(), obs_rect);
odb::Rect spacing_rect;
obs_rect.bloat(layer->getSpacing(), spacing_rect);
obs_rect = applyHalo(obs_rect, halo, true, true, true);
obs_rect.merge(spacing_rect);

transform.apply(obs_rect);
auto shape = std::make_shared<Shape>(layer, obs_rect, Shape::BLOCK_OBS);
Expand Down

0 comments on commit 0dff30d

Please sign in to comment.