vpr/src/device/rr_graph_obj.cpp
/* Check if the switch id of every edge is in range */
Check if the switch id of every edge is in range
Check if the switch id of every edge is in range
bool RRGraph::validate_edge_switches() const {
    bool all_valid = true;
    for (size_t id = 0; id < num_edges_; ++id) {
        if (!valid_edge_id(RREdgeId(id))) {
            continue;
        }
        if (true == validate_edge_switch(RREdgeId(id))) {
            continue;
        }
        all_valid = false;
        VTR_LOG_WARN("Edge %d has an invalid switch id (%d)!\n",
                     id, size_t(edge_switch(RREdgeId(id))));
    }
    return all_valid;
}
bool RRGraph :: validate_edge_switches ( ) const { bool all_valid = true ; for ( size_t id = 0 ; id < num_edges_ ; ++ id ) { if ( ! valid_edge_id ( RREdgeId ( id ) ) ) { continue ; } if ( true == validate_edge_switch ( RREdgeId ( id ) ) ) { continue ; } all_valid = false ; VTR_LOG_WARN ( " \n " , id , size_t ( edge_switch ( RREdgeId ( id ) ) ) ) ; } return all_valid ; }
Check if the switch id of every edge is in range
Check if the switch id of every edge 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! */