Skip to content

Commit bf4f697

Browse files
authored
Merge pull request #7835 from titan73/master
drt: Do not check upper layer property when we are on the last metal.
2 parents f99a561 + fb76826 commit bf4f697

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/drt/src/gc/FlexGC_main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3801,7 +3801,8 @@ void FlexGCWorker::Impl::patchMetalShape_minStep()
38013801
auto layer = tech_->getLayer(lNum);
38023802
if (!layer->hasVia2ViaMinStepViol()
38033803
&& !tech_->getLayer(lNum - 1)->hasLef58MaxSpacingConstraints()
3804-
&& !tech_->getLayer(lNum + 1)->hasLef58MaxSpacingConstraints()) {
3804+
&& (lNum + 1 >= tech_->getLayers().size()
3805+
|| !tech_->getLayer(lNum + 1)->hasLef58MaxSpacingConstraints())) {
38053806
continue;
38063807
}
38073808

0 commit comments

Comments
 (0)