Skip to content

Commit c9fe2ba

Browse files
committed
pad: apply suggestions from review
Signed-off-by: Peter Gadfort <[email protected]>
1 parent 105c9a3 commit c9fe2ba

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/pad/src/ICeWall.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,8 @@ void ICeWall::placePadsBumpAligned(
983983
snapToRowSite(row, select_pos),
984984
ginst,
985985
odb::dbOrientType::R0,
986-
false,
987-
true)
986+
/* allow_overlap */ false,
987+
/* allow_shift */ true)
988988
* row->getSpacing();
989989

990990
performPadFlip(row, ginst, iterm_connections);
@@ -1018,8 +1018,8 @@ void ICeWall::placePadsUniform(const std::vector<odb::dbInst*>& insts,
10181018
snapToRowSite(row, offset),
10191019
inst,
10201020
odb::dbOrientType::R0,
1021-
false,
1022-
true);
1021+
/* allow_overlap */ false,
1022+
/* allow_shift */ true);
10231023
offset += inst_widths.at(inst);
10241024
offset += target_spacing;
10251025
}
@@ -1165,14 +1165,10 @@ int ICeWall::placeInstance(odb::dbRow* row,
11651165
int obs_index = index;
11661166
switch (row_edge) {
11671167
case odb::Direction2D::North:
1168-
obs_index = snapToRowSite(row, check_rect.xMin());
1169-
break;
11701168
case odb::Direction2D::South:
11711169
obs_index = snapToRowSite(row, check_rect.xMin());
11721170
break;
11731171
case odb::Direction2D::West:
1174-
obs_index = snapToRowSite(row, check_rect.yMin());
1175-
break;
11761172
case odb::Direction2D::East:
11771173
obs_index = snapToRowSite(row, check_rect.yMin());
11781174
break;

0 commit comments

Comments
 (0)