You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vpr/src/device/rr_graph_builder.h
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,12 @@ class RRGraphBuilder {
84
84
inlinevoidset_node_ptc_num(RRNodeId id, short new_ptc_num) {
85
85
node_storage_.set_node_ptc_num(id, new_ptc_num);
86
86
}
87
+
88
+
/** @brief Set the node direction; The node direction is only available of routing channel nodes, such as x-direction routing tracks (CHANX) and y-direction routing tracks (CHANY). For other nodes types, this value is not meaningful and should be set to NONE. */
89
+
inlinevoidset_node_direction(RRNodeId id, Direction new_direction) {
if ((rr_graph.node_xlow(node.id()) == 0 && !node.is_node_on_specific_side(RIGHT)) //left device edge connects only along block's right side
595
-
|| (rr_graph.node_ylow(node.id()) == int(grid.height() - 1) && !node.is_node_on_specific_side(BOTTOM)) //top device edge connects only along block's bottom side
596
-
|| (rr_graph.node_xlow(node.id()) == int(grid.width() - 1) && !node.is_node_on_specific_side(LEFT)) //right deivce edge connects only along block's left side
597
-
|| (rr_graph.node_ylow(node.id()) == 0 && !node.is_node_on_specific_side(TOP)) //bottom deivce edge connects only along block's top side
594
+
if ((rr_graph.node_xlow(node.id()) == 0 && !rr_graph.is_node_on_specific_side(node.id(), RIGHT)) //left device edge connects only along block's right side
595
+
|| (rr_graph.node_ylow(node.id()) == int(grid.height() - 1) && !rr_graph.is_node_on_specific_side(node.id(), BOTTOM)) //top device edge connects only along block's bottom side
596
+
|| (rr_graph.node_xlow(node.id()) == int(grid.width() - 1) && !rr_graph.is_node_on_specific_side(node.id(), LEFT)) //right deivce edge connects only along block's left side
597
+
|| (rr_graph.node_ylow(node.id()) == 0 && !rr_graph.is_node_on_specific_side(node.id(), TOP)) //bottom deivce edge connects only along block's top side
0 commit comments