@@ -240,6 +240,8 @@ void draw_rr_edges(RRNodeId inode, ezgl::renderer* g) {
240240 e_rr_type from_type, to_type;
241241
242242 from_type = rr_graph.node_type (inode);
243+
244+ // Currently don't visualize source or sinks.
243245 if (from_type == e_rr_type::SOURCE || from_type == e_rr_type::SINK) {
244246 return ;
245247 }
@@ -255,6 +257,7 @@ void draw_rr_edges(RRNodeId inode, ezgl::renderer* g) {
255257 to_type = rr_graph.node_type (to_node);
256258 bool edge_configurable = rr_graph.edge_is_configurable (inode, iedge);
257259
260+ // Currently don't visualize source or sinks.
258261 if (to_type == e_rr_type::SOURCE || to_type == e_rr_type::SINK) {
259262 continue ;
260263 }
@@ -288,10 +291,10 @@ void draw_rr_edges(RRNodeId inode, ezgl::renderer* g) {
288291
289292 if (!edge_configurable) color = blk_DARKGREY;
290293
291- if ((from_type == e_rr_type::CHANX || from_type == e_rr_type::CHANY)
292- && (to_type == e_rr_type::IPIN)
293- && draw_state->draw_rr_node [to_node].node_highlighted
294- && draw_state->draw_rr_node [inode].color == DEFAULT_RR_NODE_COLOR){
294+ if ((from_type == e_rr_type::CHANX || from_type == e_rr_type::CHANY)
295+ && (to_type == e_rr_type::IPIN)
296+ && draw_state->draw_rr_node [to_node].node_highlighted
297+ && draw_state->draw_rr_node [inode].color == DEFAULT_RR_NODE_COLOR) {
295298 // If the IPIN is clicked on, draw connection to all the CHANX
296299 // wire segments fanning into the pin. If a CHANX wire is clicked
297300 // on, draw only the connection between that wire and the IPIN, with
0 commit comments