vpr/src/pack/cluster.cpp
/* Determine if atom block is in pb */
Determine if atom block is in pb
Determine if atom block is in pb
static bool is_atom_blk_in_pb(const AtomBlockId blk_id, const t_pb* pb) {
    auto& atom_ctx = g_vpr_ctx.atom();
    const t_pb* cur_pb = atom_ctx.lookup.atom_pb(blk_id);
    while (cur_pb) {
        if (cur_pb == pb) {
            return true;
        }
        cur_pb = cur_pb->parent_pb;
    }
    return false;
}
static bool is_atom_blk_in_pb ( const AtomBlockId blk_id , const t_pb * pb ) { auto & atom_ctx = g_vpr_ctx . atom ( ) ; const t_pb * cur_pb = atom_ctx . lookup . atom_pb ( blk_id ) ; while ( cur_pb ) { if ( cur_pb == pb ) { return true ; } cur_pb = cur_pb -> parent_pb ; } return false ; }
Determine if atom block is in pb
Determine if atom block is in pb