Skip to content

Commit 4115346

Browse files
committed
grt: init lower bound capacities
Signed-off-by: Eder Monteiro <[email protected]>
1 parent b1098ae commit 4115346

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/grt/src/GlobalRouter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ void GlobalRouter::setCapacities(int min_routing_layer, int max_routing_layer)
746746
fastroute_->addVCapacity(min_cap, layer);
747747
}
748748
}
749+
fastroute_->initLowerBoundCapacities();
749750
}
750751

751752
int GlobalRouter::computeGCellCapacity(const int x,

src/grt/src/fastroute/include/FastRoute.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class FastRouteCore
121121
void clearNetsToRoute() { net_ids_.clear(); }
122122
void initEdges();
123123
void init3DEdges();
124+
void initLowerBoundCapacities();
124125
void setEdgeCapacity(int x1, int y1, int x2, int y2, int layer, int capacity);
125126
int getDbNetLayerEdgeCost(odb::dbNet* db_net, int layer);
126127
void initEdgesCapacityPerLayer();

src/grt/src/fastroute/src/FastRoute.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,7 @@ void FastRouteCore::clearNDRnets()
365365

366366
void FastRouteCore::initEdges()
367367
{
368-
const float LB = 0.9;
369-
v_capacity_lb_ = LB * v_capacity_;
370-
h_capacity_lb_ = LB * h_capacity_;
371-
372368
// allocate memory and initialize for edges
373-
374369
graph2d_.init(x_grid_, y_grid_, num_layers_, logger_);
375370

376371
init3DEdges();
@@ -403,6 +398,13 @@ void FastRouteCore::init3DEdges()
403398
}
404399
}
405400

401+
void FastRouteCore::initLowerBoundCapacities()
402+
{
403+
const float LB = 0.9;
404+
v_capacity_lb_ = LB * v_capacity_;
405+
h_capacity_lb_ = LB * h_capacity_;
406+
}
407+
406408
void FastRouteCore::setEdgeCapacity(int x1,
407409
int y1,
408410
int x2,

0 commit comments

Comments
 (0)