vpr/src/device/rr_graph_obj.cpp
/* This function aims to print basic information about a node */
This function aims to print basic information about a node
This function aims to print basic information about a node
void RRGraph::print_node(const RRNodeId& node) const {
    VTR_LOG("Node id: %d\n", node_index(node));
    VTR_LOG("Node type: %s\n", rr_node_typename[node_type(node)]);
    VTR_LOG("Node xlow: %d\n", node_xlow(node));
    VTR_LOG("Node ylow: %d\n", node_ylow(node));
    VTR_LOG("Node xhigh: %d\n", node_xhigh(node));
    VTR_LOG("Node yhigh: %d\n", node_yhigh(node));
    VTR_LOG("Node ptc: %d\n", node_ptc_num(node));
    VTR_LOG("Node num in_edges: %d\n", node_in_edges(node).size());
    VTR_LOG("Node num out_edges: %d\n", node_out_edges(node).size());
    if (node_type(node) == CHANX || node_type(node) == CHANY) {
        VTR_LOG("Node segment id: %d\n", node_segment(node));
    }
}
void RRGraph :: print_node ( const RRNodeId & node ) const { VTR_LOG ( " \n " , node_index ( node ) ) ; VTR_LOG ( " \n " , rr_node_typename [ node_type ( node ) ] ) ; VTR_LOG ( " \n " , node_xlow ( node ) ) ; VTR_LOG ( " \n " , node_ylow ( node ) ) ; VTR_LOG ( " \n " , node_xhigh ( node ) ) ; VTR_LOG ( " \n " , node_yhigh ( node ) ) ; VTR_LOG ( " \n " , node_ptc_num ( node ) ) ; VTR_LOG ( " \n " , node_in_edges ( node ) . size ( ) ) ; VTR_LOG ( " \n " , node_out_edges ( node ) . size ( ) ) ; if ( node_type ( node ) == CHANX || node_type ( node ) == CHANY ) { VTR_LOG ( " \n " , node_segment ( node ) ) ; } }
This function aims to print basic information about a node
This function aims to print basic information about a node