Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/pdn/src/grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ void Grid::makeShapes(const Shape::ShapeTreeMap& global_shapes,
local_obstructions,
allow_repair_channels_,
domain_->getPDNGen()->getDebugRenderer());

if (logger->debugCheck(utl::PDN, "Pad", 1)) {
PadDirectConnectionStraps::reportConnectionBalance(getGridComponents());
}
}

void Grid::makeRoutingObstructions(odb::dbBlock* block) const
Expand Down Expand Up @@ -1322,9 +1326,11 @@ odb::Rect CoreGrid::getDomainBoundary() const
void CoreGrid::setupDirectConnect(
const std::vector<odb::dbTechLayer*>& connect_pad_layers)
{
auto net_map = std::make_shared<odb::PtrMap<odb::dbNet, int>>();
std::vector<PadDirectConnectionStraps*> straps;
// look for pads that need to be connected
for (auto* net : getNets()) {
(*net_map)[net] = 0;
std::vector<odb::dbITerm*> iterms;
for (auto* iterm : net->getITerms()) {
auto* inst = iterm->getInst();
Expand All @@ -1341,7 +1347,7 @@ void CoreGrid::setupDirectConnect(

for (auto* iterm : iterms) {
auto pad_connect = std::make_unique<PadDirectConnectionStraps>(
this, iterm, connect_pad_layers);
this, iterm, connect_pad_layers, net_map);
if (pad_connect->canConnect()) {
straps.push_back(pad_connect.get());
addStrap(std::move(pad_connect));
Expand Down
4 changes: 2 additions & 2 deletions src/pdn/src/grid_component.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class GridComponent
Grid* getGrid() const { return grid_; }
VoltageDomain* getDomain() const;

bool make(Shape::ShapeTreeMap& shapes,
Shape::ObstructionTreeMap& obstructions);
virtual bool make(Shape::ShapeTreeMap& shapes,
Shape::ObstructionTreeMap& obstructions);

virtual void makeShapes(const Shape::ShapeTreeMap& other_shapes) = 0;
virtual bool refineShapes(Shape::ShapeTreeMap& all_shapes,
Expand Down
Loading
Loading