Skip to content

Commit 9a77245

Browse files
committed
check_rr_graph: fix bug when checking multi-connections between nodes
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 37095c7 commit 9a77245

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vpr/src/route/check_rr_graph.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,16 @@ void check_rr_graph(const t_graph_type graph_type,
124124
t_rr_type to_rr_type = device_ctx.rr_nodes[to_node].type();
125125

126126
/* Only expect the following cases to have multiple edges
127-
* - chan <-> chan connections
128-
* - IPIN <-> chan connections (unique rr_node for IPIN nodes on multiple sides)
129-
* - OPIN <-> chan connections (unique rr_node for OPIN nodes on multiple sides)
127+
* - CHAN <-> CHAN connections
128+
* - CHAN -> IPIN connections (unique rr_node for IPIN nodes on multiple sides)
129+
* - OPIN -> CHAN connections (unique rr_node for OPIN nodes on multiple sides)
130130
*/
131-
if (((to_rr_type != CHANX && to_rr_type != CHANY && rr_type != IPIN)
131+
if (((to_rr_type != CHANX && to_rr_type != CHANY && to_rr_type != IPIN)
132132
|| (rr_type != CHANX && rr_type != CHANY))
133133
&& ((to_rr_type != CHANX && to_rr_type != CHANY)
134134
|| (rr_type != CHANX && rr_type != CHANY && rr_type != OPIN))) {
135135
VPR_ERROR(VPR_ERROR_ROUTE,
136-
"in check_rr_graph: node %d (%s) connects to node %d (%s) %zu times - multi-connections only expected for CHAN->CHAN.\n",
136+
"in check_rr_graph: node %d (%s) connects to node %d (%s) %zu times - multi-connections only expected for CHAN<->CHAN, CHAN->IPIN, OPIN->CHAN.\n",
137137
inode, rr_node_typename[rr_type], to_node, rr_node_typename[to_rr_type], num_edges_to_node);
138138
}
139139

0 commit comments

Comments
 (0)