Skip to content

Commit 8d2d31b

Browse files
committed
pdn: only bloat core vertically (assumes horizontal rows)
Signed-off-by: Peter Gadfort <[email protected]>
1 parent 1015e1f commit 8d2d31b

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/pdn/src/grid.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "odb/dbShape.h"
2121
#include "odb/dbTransform.h"
2222
#include "odb/dbTypes.h"
23+
#include "odb/isotropy.h"
2324
#include "power_cells.h"
2425
#include "rings.h"
2526
#include "straps.h"
@@ -1244,7 +1245,7 @@ CoreGrid::CoreGrid(VoltageDomain* domain,
12441245
odb::Rect CoreGrid::getDomainBoundary() const
12451246
{
12461247
// account for the width of the follow pins for straps
1247-
odb::Rect core = Grid::getDomainBoundary();
1248+
const odb::Rect core = Grid::getDomainBoundary();
12481249

12491250
int follow_pin_width = 0;
12501251
for (const auto& strap : getStraps()) {
@@ -1253,8 +1254,7 @@ odb::Rect CoreGrid::getDomainBoundary() const
12531254
}
12541255
}
12551256

1256-
core.bloat(follow_pin_width / 2, core);
1257-
return core;
1257+
return core.bloat(follow_pin_width / 2, odb::Orientation2D::Vertical);
12581258
}
12591259

12601260
void CoreGrid::setupDirectConnect(

src/pdn/src/straps.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,18 @@ void Straps::makeShapes(const Shape::ShapeTreeMap& other_shapes)
193193
}
194194
}
195195

196+
debugPrint(
197+
getLogger(),
198+
utl::PDN,
199+
"Straps",
200+
1,
201+
"Make straps on {} / horizontal {} / die {} / core {} / boundary {}",
202+
layer_->getName(),
203+
isHorizontal(),
204+
Shape::getRectText(die, layer.getLefUnits()),
205+
Shape::getRectText(core, layer.getLefUnits()),
206+
Shape::getRectText(boundary, layer.getLefUnits()));
207+
196208
if (isHorizontal()) {
197209
const int x_start = boundary.xMin();
198210
const int x_end = boundary.xMax();

0 commit comments

Comments
 (0)