Skip to content

Commit e62e8ff

Browse files
authored
Merge pull request #3151 from verilog-to-routing/draw_net_fix
Fixed Route Drawing Function
2 parents e097368 + 1751af2 commit e62e8ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vpr/src/draw/draw_basic.cpp

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

596+
// When drawing a new branch, add the parent node to the vector to ensure that the conenction is drawn.
597+
if (rr_nodes_to_draw.empty() && rt_node.parent().has_value()) {
598+
rr_nodes_to_draw.push_back(rt_node.parent().value().inode);
599+
}
600+
596601
rr_nodes_to_draw.push_back(inode);
597602

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

0 commit comments

Comments
 (0)