We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dd555e commit 07f4175Copy full SHA for 07f4175
vpr/src/draw/draw_types.cpp
@@ -13,7 +13,15 @@
13
*******************************************/
14
ezgl::color t_draw_state::block_color(ClusterBlockId blk) const {
15
if (use_default_block_color_[blk]) {
16
- t_physical_tile_type_ptr tile_type = get_physical_tile_type(blk);
+ 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);
25
return get_block_type_color(tile_type);
26
} else {
27
return block_color_[blk];
0 commit comments