openfpga/src/annotation/annotate_placement.cpp
/********************************************************************
 * Assign mapped blocks to grid locations 
 * This is used by bitstream generator mainly as a fast look-up to 
 * get mapped blocks with a given coordinate
 *******************************************************************/
Assign mapped blocks to grid locations
This is used by bitstream generator mainly as a fast look-up to
get mapped blocks with a given coordinate
Assign mapped blocks to grid locations This is used by bitstream generator mainly as a fast look - up to get mapped blocks with a given coordinate
void annotate_mapped_blocks(const DeviceContext& device_ctx, 
                            const ClusteringContext& cluster_ctx, 
                            const PlacementContext& place_ctx, 
                            VprPlacementAnnotation& place_annotation) {
  VTR_LOG("Building annotation for mapped blocks on grid locations...");
  place_annotation.init_mapped_blocks(device_ctx.grid);
  for (const ClusterBlockId& blk_id : cluster_ctx.clb_nlist.blocks()) {
    vtr::Point<size_t> grid_coord(place_ctx.block_locs[blk_id].loc.x, place_ctx.block_locs[blk_id].loc.y);
    place_annotation.add_mapped_block(grid_coord, place_ctx.block_locs[blk_id].loc.z, blk_id);
  } 
  VTR_LOG("Done\n");
}
void annotate_mapped_blocks ( const DeviceContext & device_ctx , const ClusteringContext & cluster_ctx , const PlacementContext & place_ctx , VprPlacementAnnotation & place_annotation ) { VTR_LOG ( " " ) ; place_annotation . init_mapped_blocks ( device_ctx . grid ) ; for ( const ClusterBlockId & blk_id : cluster_ctx . clb_nlist . blocks ( ) ) { vtr :: Point < size_t > grid_coord ( place_ctx . block_locs [ blk_id ] . loc . x , place_ctx . block_locs [ blk_id ] . loc . y ) ; place_annotation . add_mapped_block ( grid_coord , place_ctx . block_locs [ blk_id ] . loc . z , blk_id ) ; } VTR_LOG ( " \n " ) ; }
Assign mapped blocks to grid locations
 This is used by bitstream generator mainly as a fast look-up to
 get mapped blocks with a given coordinate
Assign mapped blocks to grid locations This is used by bitstream generator mainly as a fast look - up to get mapped blocks with a given coordinate