Skip to content

Commit

Permalink
drt: minor changes
Browse files Browse the repository at this point in the history
Signed-off-by: osamahammad21 <[email protected]>
  • Loading branch information
osamahammad21 committed Sep 17, 2024
1 parent e9eacd7 commit 76ffbc9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/drt/src/gc/FlexGC_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2216,8 +2216,9 @@ void FlexGCWorker::Impl::checkMetalShape_addPatch(gcPin* pin, int min_area)
return;
}

if (!gc_patch::isPatchValid(patch.get(), getDRWorker()->getRouteBox()))
if (!gc_patch::isPatchValid(patch.get(), getDRWorker()->getRouteBox())) {
return;
}
pwires_.push_back(std::move(patch));
}

Expand Down Expand Up @@ -3669,8 +3670,9 @@ void FlexGCWorker::Impl::patchMetalShape_cornerSpacing()
patch->setOrigin(origin);
patch->setOffsetBox(markerBBox);
patch->addToNet(net);
if (!gc_patch::isPatchValid(patch.get(), getDRWorker()->getRouteBox()))
return;
if (!gc_patch::isPatchValid(patch.get(), getDRWorker()->getRouteBox())) {
continue;
}
pwires_.push_back(std::move(patch));
}
}
Expand Down Expand Up @@ -3793,8 +3795,9 @@ void FlexGCWorker::Impl::patchMetalShape_minStep()
patch->setOrigin(origin);
patch->setOffsetBox(markerBBox);
patch->addToNet(net);
if (!gc_patch::isPatchValid(patch.get(), getDRWorker()->getRouteBox()))
return;
if (!gc_patch::isPatchValid(patch.get(), getDRWorker()->getRouteBox())) {
continue;
}
pwires_.push_back(std::move(patch));
}
}
Expand Down

0 comments on commit 76ffbc9

Please sign in to comment.