Skip to content

Commit d606a5d

Browse files
committed
format
1 parent 7fd087f commit d606a5d

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

vpr/src/draw/draw_basic.cpp

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -576,18 +576,16 @@ void draw_routed_net(ParentNetId net_id, ezgl::renderer* g) {
576576
for (auto& rt_node : route_ctx.route_trees[net_id].value().all_nodes()) {
577577
RRNodeId inode = rt_node.inode;
578578

579-
580-
581-
// If a net has been highlighted, highlight all the nodes in the net the same color.
582-
if (draw_if_net_highlighted(net_id)) {
583-
draw_state->draw_rr_node[inode].color = draw_state->net_color[net_id];
584-
draw_state->draw_rr_node[inode].node_highlighted = true;
585-
} else {
586-
// If not highlighted, draw the node in default color.
587-
if (!draw_state->draw_rr_node[inode].node_highlighted) {
588-
draw_state->draw_rr_node[inode].color = DEFAULT_RR_NODE_COLOR;
589-
}
579+
// If a net has been highlighted, highlight all the nodes in the net the same color.
580+
if (draw_if_net_highlighted(net_id)) {
581+
draw_state->draw_rr_node[inode].color = draw_state->net_color[net_id];
582+
draw_state->draw_rr_node[inode].node_highlighted = true;
583+
} else {
584+
// If not highlighted, draw the node in default color.
585+
if (!draw_state->draw_rr_node[inode].node_highlighted) {
586+
draw_state->draw_rr_node[inode].color = DEFAULT_RR_NODE_COLOR;
590587
}
588+
}
591589

592590
// When drawing a new branch, add the parent node to the vector to ensure that the conenction is drawn.
593591
if (rr_nodes_to_draw.empty() && rt_node.parent().has_value()) {

vpr/src/draw/intra_logic_block.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,14 +662,14 @@ void draw_logical_connections(ezgl::renderer* g) {
662662
color = DRIVEN_BY_IT_COLOR;
663663
} else if (draw_state->draw_nets == DRAW_FLYLINES && draw_state->show_nets) {
664664
color = ezgl::BLACK;
665-
665+
666666
// Turn on and off intra-cluster/inter-cluster flyline drawing based on user options
667667

668-
if(src_clb == sink_clb && !draw_state->draw_intra_cluster_nets) {
668+
if (src_clb == sink_clb && !draw_state->draw_intra_cluster_nets) {
669669
continue;
670670
}
671671

672-
if(src_clb != sink_clb && !draw_state->draw_inter_cluster_nets) {
672+
if (src_clb != sink_clb && !draw_state->draw_inter_cluster_nets) {
673673
continue;
674674
}
675675

vpr/src/draw/intra_logic_block.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ t_selected_sub_block_info& get_selected_sub_block_info();
124124
*/
125125
void draw_selected_pb_flylines(ezgl::renderer* g);
126126

127-
128127
/*
129128
* Draws lines from the proper logical sources, to the proper logical sinks.
130129
* If the draw state says to show all logical connections, it will,

0 commit comments

Comments
 (0)