vpr/src/device/rr_graph_obj.cpp
/* Node starting and ending points */
/************************************************************************
 * Get the coordinator of a starting point of a routing track 
 * For routing tracks in INC_DIRECTION
 * (xlow, ylow) should be the starting point 
 *
 * For routing tracks in DEC_DIRECTION
 * (xhigh, yhigh) should be the starting point 
 *
 * For routing tracks in BI_DIRECTION
 * we always use (xhigh, yhigh)
 ***********************************************************************/
Node starting and ending points
Get the coordinator of a starting point of a routing track
For routing tracks in INC_DIRECTION
(xlow, ylow) should be the starting point

For routing tracks in DEC_DIRECTION
(xhigh, yhigh) should be the starting point

For routing tracks in BI_DIRECTION
we always use (xhigh, yhigh)
Node starting and ending points Get the coordinator of a starting point of a routing track For routing tracks in INC_DIRECTION ( xlow ylow ) should be the starting point For routing tracks in DEC_DIRECTION ( xhigh yhigh ) should be the starting point For routing tracks in BI_DIRECTION we always use ( xhigh yhigh )
vtr::Point<short> RRGraph::node_start_coordinate(const RRNodeId& node) const {
    VTR_ASSERT((CHANX == node_type(node)) || (CHANY == node_type(node)));
    vtr::Point<short> start_coordinate(node_xlow(node), node_ylow(node));
    if (DEC_DIRECTION == node_direction(node)) {
        start_coordinate.set(node_xhigh(node), node_yhigh(node));
    }
    return start_coordinate;
}
vtr :: Point < short > RRGraph :: node_start_coordinate ( const RRNodeId & node ) const { VTR_ASSERT ( ( CHANX == node_type ( node ) ) || ( CHANY == node_type ( node ) ) ) ; vtr :: Point < short > start_coordinate ( node_xlow ( node ) , node_ylow ( node ) ) ; if ( DEC_DIRECTION == node_direction ( node ) ) { start_coordinate . set ( node_xhigh ( node ) , node_yhigh ( node ) ) ; } return start_coordinate ; }
Node starting and ending points
 Get the coordinator of a starting point of a routing track
 For routing tracks in INC_DIRECTION
 (xlow, ylow) should be the starting point
Node starting and ending points Get the coordinator of a starting point of a routing track For routing tracks in INC_DIRECTION ( xlow ylow ) should be the starting point
/* Make sure we have CHANX or CHANY */