Skip to content

Commit 3d032dd

Browse files
author
Nathan Shreve
committed
Skip over 1x1 blocks
1 parent 71258af commit 3d032dd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libs/librrgraph/src/base/rr_graph_utils.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static void walk_cluster_recursive(const RRGraphView& rr_graph,
1212
std::unordered_set<RRNodeId>& sink_ipins,
1313
const RRNodeId curr,
1414
const RRNodeId origin) {
15-
// Make sure SINK in the same cluster as origin. This might not be the case when we have direct-connect between blocks
15+
// Make sure SINK in the same cluster as origin
1616
int curr_x = rr_graph.node_xlow(curr);
1717
int curr_y = rr_graph.node_ylow(curr);
1818
if ((curr_x < rr_graph.node_xlow(origin)) || (curr_x > rr_graph.node_xhigh(origin)) || (curr_y < rr_graph.node_ylow(origin)) || (curr_y > rr_graph.node_yhigh(origin)))
@@ -147,6 +147,12 @@ void set_sink_locs(const RRGraphView& rr_graph, RRGraphBuilder& rr_graph_builder
147147
if (rr_graph.node_type((RRNodeId)node_id) != e_rr_type::SINK)
148148
continue;
149149

150+
int tile_width = rr_graph.node_xhigh(node_id) - rr_graph.node_xlow(node_id);
151+
int tile_height = rr_graph.node_yhigh(node_id) - rr_graph.node_ylow(node_id);
152+
153+
if (tile_width == 0 && tile_height == 0)
154+
continue;
155+
150156
sink_ipins[node_id] = {};
151157
walk_cluster_recursive(rr_graph, node_fanins, sink_ipins[node_id], node_id, node_id);
152158
}

0 commit comments

Comments
 (0)