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

For routing tracks in DEC_DIRECTION
(xlow, ylow) should be the ending point

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