Skip to content

Commit c74f792

Browse files
committed
dpl: avoid padding violation on cells adjacent to the core edge
Signed-off-by: Eder Monteiro <[email protected]>
1 parent 5fc6951 commit c74f792

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/dpl/src/PlacementDRC.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,9 @@ bool PlacementDRC::checkPadding(const Node* cell,
302302
for (GridY grid_y{y}; grid_y < cell_y_end; grid_y++) {
303303
const Pixel* pixel = grid_->gridPixel(grid_x, grid_y);
304304
if (pixel == nullptr) { // at the core edge
305-
if (!cell->isFixed()) {
306-
// Padding violation with the core edge.
305+
const bool left_edge = x == 0;
306+
const bool right_edge = cell_x_end == grid_->getRowSiteCount();
307+
if (!cell->isFixed() && !left_edge && !right_edge) {
307308
return false;
308309
}
309310
continue;

0 commit comments

Comments
 (0)