@@ -613,29 +613,17 @@ void draw_partial_route(const std::vector<RRNodeId>& rr_nodes_to_draw, ezgl::ren
613613 auto & device_ctx = g_vpr_ctx.device ();
614614 const auto & rr_graph = device_ctx.rr_graph ;
615615
616- static vtr::OffsetMatrix<int > chanx_track; /* [1..device_ctx.grid.width() - 2][0..device_ctx.grid.height() - 2] */
617- static vtr::OffsetMatrix<int > chany_track; /* [0..device_ctx.grid.width() - 2][1..device_ctx.grid.height() - 2] */
618- if (draw_state->draw_route_type == GLOBAL) {
619- /* Allocate some temporary storage if it's not already available. */
620- int width = (int )device_ctx.grid .width ();
621- int height = (int )device_ctx.grid .height ();
622- if (chanx_track.empty ()) {
623- chanx_track = vtr::OffsetMatrix<int >({{{1 , width - 1 }, {0 , height - 1 }}});
624- }
625-
626- if (chany_track.empty ()) {
627- chany_track = vtr::OffsetMatrix<int >({{{0 , width - 1 }, {1 , height - 1 }}});
628- }
616+ // Draw Pins
617+ for (RRNodeId inode : rr_nodes_to_draw) {
618+
619+ bool is_inode_inter_cluster = is_inter_cluster_node (rr_graph, inode);
629620
630- for (int i = 1 ; i < width - 1 ; i++)
631- for (int j = 0 ; j < height - 1 ; j++)
632- chanx_track[i][j] = (-1 );
633621
634- for (int i = 0 ; i < width - 1 ; i++)
635- for (int j = 1 ; j < height - 1 ; j++)
636- chany_track[i][j] = (-1 );
637622 }
638623
624+
625+
626+ // Draw Edges
639627 for (size_t i = 1 ; i < rr_nodes_to_draw.size (); ++i) {
640628 RRNodeId inode = rr_nodes_to_draw[i];
641629 auto rr_type = rr_graph.node_type (inode);
@@ -724,9 +712,6 @@ void draw_partial_route(const std::vector<RRNodeId>& rr_nodes_to_draw, ezgl::ren
724712 break ;
725713 }
726714 case e_rr_type::CHANX: {
727- if (draw_state->draw_route_type == GLOBAL)
728- chanx_track[rr_graph.node_xlow (inode)][rr_graph.node_ylow (inode)]++;
729-
730715 draw_rr_chan (inode, color, g);
731716 if (edge_visibility.visible ) {
732717 g->set_color (color, edge_visibility.alpha );
@@ -754,9 +739,6 @@ void draw_partial_route(const std::vector<RRNodeId>& rr_nodes_to_draw, ezgl::ren
754739 break ;
755740 }
756741 case e_rr_type::CHANY: {
757- if (draw_state->draw_route_type == GLOBAL)
758- chany_track[rr_graph.node_xlow (inode)][rr_graph.node_ylow (inode)]++;
759-
760742 draw_rr_chan (inode, color, g);
761743
762744 if (edge_visibility.visible ) {
0 commit comments