vpr/src/device/rr_graph_obj.cpp
/* Check if the segment id of every node is in range */
Check if the segment id of every node is in range
Check if the segment id of every node is in range
bool RRGraph::validate_node_segments() const {
    bool all_valid = true;
    for (size_t id = 0; id < num_nodes_; ++id) {
        if (!valid_node_id(RRNodeId(id))) {
            continue;
        }
        if (true == validate_node_segment(RRNodeId(id))) {
            continue;
        }
        all_valid = false;
        VTR_LOG_WARN("Node %d has an invalid segment id (%d)!\n",
                     id, size_t(node_segment(RRNodeId(id))));
    }
    return all_valid;
}
bool RRGraph :: validate_node_segments ( ) const { bool all_valid = true ; for ( size_t id = 0 ; id < num_nodes_ ; ++ id ) { if ( ! valid_node_id ( RRNodeId ( id ) ) ) { continue ; } if ( true == validate_node_segment ( RRNodeId ( id ) ) ) { continue ; } all_valid = false ; VTR_LOG_WARN ( " \n " , id , size_t ( node_segment ( RRNodeId ( id ) ) ) ) ; } return all_valid ; }
Check if the segment id of every node is in range
Check if the segment id of every node is in range
/* Try to find if this is an invalid id or not */ /* Skip this id */ /* Reach here it means we find an invalid segment id */ /* Print a warning! */