Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
alanbu1 committed Sep 6, 2023
1 parent b579cbd commit 17a38ce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions vpr/src/route/route_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ vtr::Matrix<float> calculate_routing_usage(t_rr_type rr_type, bool is_flat, bool

//Record number of used resources in each x/y channel
for (RRNodeId rr_node : rr_nodes) {
#ifndef NO_GRAPHICS
if (!is_print) {
t_draw_state* draw_state = get_draw_state_vars();
int layer_num = rr_graph.node_layer(rr_node);
if (!draw_state->draw_layer_display[layer_num].visible)
continue; // don't count usage if layer is not visible
}
#endif
#ifndef NO_GRAPHICS
if (!is_print) {
t_draw_state* draw_state = get_draw_state_vars();
int layer_num = rr_graph.node_layer(rr_node);
if (!draw_state->draw_layer_display[layer_num].visible)
continue; // don't count usage if layer is not visible
}
#endif

if (rr_type == CHANX) {
VTR_ASSERT(rr_graph.node_type(rr_node) == CHANX);
Expand Down

0 comments on commit 17a38ce

Please sign in to comment.