Skip to content

Commit 61f4fda

Browse files
committed
fix initialization problems in findLayerSlots
Signed-off-by: Chaitanya Gambali <[email protected]>
1 parent ecc2be4 commit 61f4fda

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ppl/src/IOPlacer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,6 @@ std::vector<Point> IOPlacer::findLayerSlots(const int layer,
829829
int num_tracks_offset
830830
= std::ceil(static_cast<double>(corner_avoidance_) / min_dst_pins);
831831

832-
int curr_x = 0;
833-
int curr_y = 0;
834832
int start_idx = 0;
835833
int end_idx = 0;
836834

@@ -843,6 +841,8 @@ std::vector<Point> IOPlacer::findLayerSlots(const int layer,
843841
static_cast<int>((max - half_width - init_tracks)
844842
/ min_dst_pins))
845843
- num_tracks_offset;
844+
845+
int curr_x = 0, curr_y = 0;
846846
if (vertical_pin) {
847847
curr_x = init_tracks + start_idx * min_dst_pins;
848848
if (is_die_polygon) {

src/sta

Submodule sta updated 69 files

0 commit comments

Comments
 (0)