Skip to content

Commit f77e0e4

Browse files
authored
Merge pull request #2624 from verilog-to-routing/high_fanout_rt
CHAN Node Count - High Fanout RT
2 parents 62d1243 + dfedc23 commit f77e0e4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

vpr/src/route/connection_router.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,6 @@ t_bb ConnectionRouter<Heap>::add_high_fanout_route_tree_to_heap(
981981
int target_bin_x = grid_to_bin_x(rr_graph_->node_xlow(target_node), spatial_rt_lookup);
982982
int target_bin_y = grid_to_bin_y(rr_graph_->node_ylow(target_node), spatial_rt_lookup);
983983

984-
int nodes_added = 0;
985984
int chan_nodes_added = 0;
986985

987986
t_bb highfanout_bb;
@@ -1029,14 +1028,9 @@ t_bb ConnectionRouter<Heap>::add_high_fanout_route_tree_to_heap(
10291028
// Expand HF BB to include the node (clip by original BB)
10301029
expand_highfanout_bounding_box(highfanout_bb, net_bounding_box, rr_node_to_add, rr_graph_);
10311030

1032-
if (is_flat_) {
1033-
if (rr_graph_->node_type(rr_node_to_add) == CHANY || rr_graph_->node_type(rr_node_to_add) == CHANX) {
1034-
chan_nodes_added++;
1035-
}
1036-
} else {
1031+
if (rr_graph_->node_type(rr_node_to_add) == CHANY || rr_graph_->node_type(rr_node_to_add) == CHANX) {
10371032
chan_nodes_added++;
10381033
}
1039-
nodes_added++;
10401034
}
10411035

10421036
constexpr int SINGLE_BIN_MIN_NODES = 2;
@@ -1054,7 +1048,7 @@ t_bb ConnectionRouter<Heap>::add_high_fanout_route_tree_to_heap(
10541048
if (done) break;
10551049
}
10561050

1057-
if (nodes_added == 0) { //If the target bin, and it's surrounding bins were empty, just add the full route tree
1051+
if (chan_nodes_added == 0) { //If the target bin, and it's surrounding bins were empty, just add the full route tree
10581052
add_route_tree_to_heap(rt_root, target_node, cost_params, net_bounding_box);
10591053
return net_bounding_box;
10601054
} else {

0 commit comments

Comments
 (0)