Skip to content

Commit 601551e

Browse files
committed
grt: removing unused code and cleaning
Signed-off-by: Jonas Gava <jfgava@precisioninno.com>
1 parent f1ff24e commit 601551e

File tree

6 files changed

+5
-50
lines changed

6 files changed

+5
-50
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,6 @@ class FastRouteCore
545545
void StTreeVisualization(const StTree& stree,
546546
FrNet* net,
547547
bool is3DVisualization);
548-
bool congestionAnalysis(int netID);
549-
void updateNetUsage(int netID, int adjustment);
550548
int netCount() const { return nets_.size(); }
551549

552550
using Tile = std::tuple<int, int, int>;

src/grt/src/fastroute/include/Graph2D.h

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,6 @@ class Graph2D
9191
void updateUsageH(int x, int y, FrNet* net, int usage);
9292
void updateUsageV(int x, const Interval& yi, FrNet* net, int usage);
9393
void updateUsageV(int x, int y, FrNet* net, int usage);
94-
bool hasNDRCapacity(FrNet* net, int x, int y, EdgeDirection direction);
95-
bool hasNDRCapacity(FrNet* net,
96-
int x,
97-
int y,
98-
EdgeDirection direction,
99-
double edge_cost);
100-
void printNDRCap(int x, int y);
101-
void printEdgeCapPerLayer();
10294
void initCap3D();
10395
void updateCap3D(int x,
10496
int y,
@@ -124,12 +116,9 @@ class Graph2D
124116
FrNet* net,
125117
EdgeDirection dir,
126118
double edge_cost);
127-
void fixFractionEdgeUsage(int min_layer,
128-
int max_layer,
129-
int x,
130-
int y,
131-
double edge_cost,
132-
EdgeDirection dir);
119+
bool hasNDRCapacity(FrNet* net, int x, int y, EdgeDirection direction);
120+
void printNDRCap(int x, int y);
121+
void printEdgeCapPerLayer();
133122
void initNDRnets();
134123

135124
void foreachEdge(const std::function<void(Edge&)>& func);

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,15 +1441,6 @@ NetRouteMap FastRouteCore::run()
14411441
max_overflow_increases);
14421442
}
14431443

1444-
// debug mode Rectilinear Steiner Tree during overflow iterations
1445-
if (debug_->isOn() && debug_->rectilinearSTree) {
1446-
for (const int& netID : net_ids_) {
1447-
if (nets_[netID]->getDbNet() == debug_->net) {
1448-
StTreeVisualization(sttrees_[netID], nets_[netID], false);
1449-
}
1450-
}
1451-
}
1452-
14531444
// generate DRC report each interval
14541445
if (congestion_report_iter_step_ && i % congestion_report_iter_step_ == 0) {
14551446
saveCongestion(i);
@@ -1629,8 +1620,6 @@ void FastRouteCore::computeCongestionInformation()
16291620
if (overflow > 0) {
16301621
overflow_per_layer_[l] += overflow;
16311622
max_h_overflow_[l] = std::max(max_h_overflow_[l], overflow);
1632-
logger_->info(
1633-
GRT, 117, "Overflow H: x: {} y: {} layer: {}", j, i, l + 1);
16341623
}
16351624
}
16361625
}
@@ -1644,8 +1633,6 @@ void FastRouteCore::computeCongestionInformation()
16441633
if (overflow > 0) {
16451634
overflow_per_layer_[l] += overflow;
16461635
max_v_overflow_[l] = std::max(max_v_overflow_[l], overflow);
1647-
logger_->info(
1648-
GRT, 118, "Overflow V: x: {} y: {} layer: {}", j, i, l + 1);
16491636
}
16501637
}
16511638
}

src/grt/src/fastroute/src/RipUp.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,6 @@ bool FastRouteCore::newRipup3DType3(const int netID, const int edgeID)
336336
if (grids[i].layer == grids[i + 1].layer) {
337337
if (grids[i].x == grids[i + 1].x) { // a vertical edge
338338
const int ymin = std::min(grids[i].y, grids[i + 1].y);
339-
if (net->getDbNet() == debug_->net) {
340-
logger_->report("--- Ripping up {} x{} y{} l{}",
341-
net->getName(),
342-
grids[i].x,
343-
ymin,
344-
grids[i].layer + 1);
345-
}
346339
graph2d_.updateUsageV(grids[i].x, ymin, net, -net->getEdgeCost());
347340
v_edges_3D_[grids[i].layer][ymin][grids[i].x].usage
348341
-= net->getLayerEdgeCost(grids[i].layer);
@@ -406,13 +399,6 @@ void FastRouteCore::newRipupNet(const int netID)
406399
const int num_edges = sttrees_[netID].num_edges();
407400

408401
FrNet* net = nets_[netID];
409-
if (net->getDbNet() == debug_->net) {
410-
logger_->report(
411-
"=== Starting newRipupNet for {} - NumEdges: {} - EdgeCost: {} ===",
412-
net->getName(),
413-
num_edges,
414-
edgeCost);
415-
}
416402

417403
for (int edgeID = 0; edgeID < num_edges; edgeID++) {
418404
const TreeEdge* treeedge = &(treeedges[edgeID]);

src/grt/src/fastroute/src/graph2d.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ void Graph2D::updateUsageH(const int x,
367367
}
368368
}
369369

370-
// Updates usage for a horizontal edge segment, considering NDRs.
370+
// Updates usage for a horizontal edge segment.
371371
void Graph2D::updateUsageH(const Interval& xi,
372372
const int y,
373373
FrNet* net,
@@ -401,7 +401,7 @@ void Graph2D::updateUsageV(const int x,
401401
}
402402
}
403403

404-
// Updates usage for a vertical edge segment, considering NDRs.
404+
// Updates usage for a vertical edge segment.
405405
void Graph2D::updateUsageV(const int x,
406406
const Interval& yi,
407407
FrNet* net,

src/grt/src/fastroute/src/route.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,11 +1316,6 @@ void FastRouteCore::routeMonotonic(const int netID,
13161316
treeedge->route.routelen = cnt - 1;
13171317

13181318
grids.resize(cnt);
1319-
1320-
if (is_ndr && net->getDbNet() == debug_->net) {
1321-
logger_->report("After reroute monotonic");
1322-
printEdge(netID, edgeID);
1323-
}
13241319
}
13251320

13261321
void FastRouteCore::routeMonotonicAll(const int threshold,

0 commit comments

Comments
 (0)