Skip to content

Commit 5090124

Browse files
Merge pull request #2975 from AlexandreSinger/feature-ap-initial-placer
[AP][InitialPlacement] Improved Initial Placement
2 parents ce17681 + 2da44e5 commit 5090124

File tree

3 files changed

+259
-71
lines changed

3 files changed

+259
-71
lines changed

vpr/src/base/flat_placement_types.h

+10
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ struct t_flat_pl_loc {
3535
return *this;
3636
}
3737

38+
/**
39+
* @brief Subtracts the coordinates of another t_flat_pl_loc to this one.
40+
*/
41+
t_flat_pl_loc& operator-=(const t_flat_pl_loc& other) {
42+
x -= other.x;
43+
y -= other.y;
44+
layer -= other.layer;
45+
return *this;
46+
}
47+
3848
/**
3949
* @brief Divides the coordinates of this t_flat_pl_loc by a divisor.
4050
*

0 commit comments

Comments
 (0)