Skip to content

Commit 13eaf53

Browse files
committed
drt: use half area when previous shape is via when adding wire area
Signed-off-by: Eder Monteiro <[email protected]>
1 parent 1b1ef50 commit 13eaf53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/drt/src/dr/FlexDR_maze.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3128,7 +3128,9 @@ void FlexDRWorker::routeNet_postAstarPatchMinAreaVio(
31283128
gridGraph_.getPoint(ep, nextIdx.x(), nextIdx.y());
31293129
frCoord pathLength = abs(bp.x() - ep.x()) + abs(bp.y() - ep.y());
31303130
if (currArea < reqArea) {
3131-
currArea /= 2;
3131+
if (!prev_is_wire) {
3132+
currArea /= 2;
3133+
}
31323134
currArea += pathLength * pathWidth;
31333135
}
31343136
prev_is_wire = true;

0 commit comments

Comments
 (0)