Skip to content

Commit 322f30f

Browse files
add warning messages for zero fanin fanout
1 parent 454fd79 commit 322f30f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

vpr/src/route/rr_graph_generation/build_scatter_gathers.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,21 @@ std::vector<t_bottleneck_link> alloc_and_load_scatter_gather_connections(const s
254254
bottleneck_fanout = std::min<int>(bottleneck_fanout, scatter_wire_candidates.size());
255255

256256
if (bottleneck_fanin == 0 || bottleneck_fanout == 0) {
257+
258+
VTR_LOGV_WARN(bottleneck_fanin == 0,
259+
"Scatter-gather pattern '%s' with SG link '%s' at location (layer=%i, x=%i, y=%i) "
260+
"has zero gather fanin connections (candidates=%zu)\n",
261+
sg_pattern.name.c_str(), sg_link.name.c_str(),
262+
gather_loc.layer_num, gather_loc.x, gather_loc.y,
263+
gather_wire_candidates.size());
264+
265+
VTR_LOGV_WARN(bottleneck_fanout == 0,
266+
"Scatter-gather pattern '%s' with SG link '%s' at location (layer=%i, x=%i, y=%i) "
267+
"has zero scatter fanout connections (candidates=%zu)\n",
268+
sg_pattern.name.c_str(), sg_link.name.c_str(),
269+
scatter_loc.layer_num, scatter_loc.x, scatter_loc.y,
270+
scatter_wire_candidates.size());
271+
257272
continue;
258273
}
259274

0 commit comments

Comments
 (0)