File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1313 *******************************************/
1414ezgl::color t_draw_state::block_color (ClusterBlockId blk) const {
1515 if (use_default_block_color_[blk]) {
16- t_physical_tile_type_ptr tile_type = get_physical_tile_type (blk);
16+ t_physical_tile_type_ptr tile_type = nullptr ;
17+ auto & cluster_ctx = g_vpr_ctx.clustering ();
18+ auto & place_ctx = g_vpr_ctx.placement ();
19+ if (place_ctx.block_locs .empty ()) { // No placement, pick best match
20+ tile_type = pick_physical_type (cluster_ctx.clb_nlist .block_type (blk));
21+ } else { // Have placement, select physical tile implementing blk
22+ tile_type = physical_tile_type (blk);
23+ }
24+ VTR_ASSERT (tile_type != nullptr );
1725 return get_block_type_color (tile_type);
1826 } else {
1927 return block_color_[blk];
You can’t perform that action at this time.
0 commit comments