vpr/src/route/rr_node.cpp
/*
 * Pass in two coordinate variables describing location of node.
 * They do not have to be in any particular order.
 */
Pass in two coordinate variables describing location of node.
They do not have to be in any particular order.
Pass in two coordinate variables describing location of node . They do not have to be in any particular order .
void t_rr_node::set_coordinates(short x1, short y1, short x2, short y2) {
    if (x1 < x2) {
        xlow_ = x1;
        xhigh_ = x2;
    } else {
        xlow_ = x2;
        xhigh_ = x1;
    }
    if (y1 < y2) {
        ylow_ = y1;
        yhigh_ = y2;
    } else {
        ylow_ = y2;
        yhigh_ = y1;
    }
}
void t_rr_node :: set_coordinates ( short x1 , short y1 , short x2 , short y2 ) { if ( x1 < x2 ) { xlow_ = x1 ; xhigh_ = x2 ; } else { xlow_ = x2 ; xhigh_ = x1 ; } if ( y1 < y2 ) { ylow_ = y1 ; yhigh_ = y2 ; } else { ylow_ = y2 ; yhigh_ = y1 ; } }
Pass in two coordinate variables describing location of node.
Pass in two coordinate variables describing location of node .