Skip to content

Commit 0c1cf2f

Browse files
committed
fixed route drawing
1 parent 8824298 commit 0c1cf2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vpr/src/draw/draw_basic.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,10 @@ void draw_routed_net(ParentNetId net_id, ezgl::renderer* g) {
592592
draw_state->draw_rr_node[inode].color = DEFAULT_RR_NODE_COLOR;
593593
}
594594

595+
if(rr_nodes_to_draw.empty() && rt_node.parent().has_value()) {
596+
rr_nodes_to_draw.push_back(rt_node.parent().value().inode);
597+
}
598+
595599
rr_nodes_to_draw.push_back(inode);
596600

597601
if (rt_node.is_leaf()) { // End of branch

0 commit comments

Comments
 (0)