Skip to content

Commit 0bde6fd

Browse files
committed
grt: BIG_INT for the first mazeRoute3D route length treshold. Code cleaning
Signed-off-by: Jonas Gava <[email protected]>
1 parent 93a3ba1 commit 0bde6fd

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,15 @@ class Graph2D
3535

3636
struct NDRCongestion
3737
{
38-
int net_id = -1; // NDR net id
39-
uint16_t num_edges
40-
= 0; // number of congested edges involved with the NDR net
41-
// uint8_t clock_tree_level; // zero means root clock level
38+
int net_id; // NDR net id
39+
uint16_t num_edges; // number of congested edges
4240
};
4341

4442
struct NDRCongestionComparator
4543
{
4644
bool operator()(const NDRCongestion& a, const NDRCongestion& b) const
4745
{
48-
// if (a.clock_tree_level != b.clock_tree_level){
49-
// return a.clock_tree_level > b.clock_tree_level;
50-
// }
51-
// if (a.num_edges != b.num_edges){
5246
return a.num_edges > b.num_edges;
53-
// }
5447
}
5548
};
5649

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ NetRouteMap FastRouteCore::run()
11941194
float logistic_coef = 0;
11951195
int slope;
11961196
int max_adj;
1197-
const int long_edge_len = 40;
1197+
const int long_edge_len = BIG_INT;
11981198
const int short_edge_len = 12;
11991199

12001200
// call FLUTE to generate RSMT and break the nets into segments (2-pin nets)

0 commit comments

Comments
 (0)