From 4ac8ea007df770c7a8151101300ef7696a944838 Mon Sep 17 00:00:00 2001 From: Jeff Goeders Date: Tue, 16 Nov 2021 17:37:47 -0700 Subject: [PATCH 1/2] Add missing space to describe_rr_node Signed-off-by: Jeff Goeders --- vpr/src/route/rr_graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpr/src/route/rr_graph.cpp b/vpr/src/route/rr_graph.cpp index f842eb3db7a..63cdf4aa94f 100644 --- a/vpr/src/route/rr_graph.cpp +++ b/vpr/src/route/rr_graph.cpp @@ -2464,7 +2464,7 @@ std::string describe_rr_node(int inode) { msg += vtr::string_fmt(" fan-in: %d", rr_graph.node_fan_in(RRNodeId(inode))); msg += vtr::string_fmt(" fan-out: %d", rr_node.num_edges()); - msg += rr_graph.node_coordinate_to_string(RRNodeId(inode)); + msg += " " + rr_graph.node_coordinate_to_string(RRNodeId(inode)); return msg; } From 8b7752ff8717774dcff10af2d6f90a202707083a Mon Sep 17 00:00:00 2001 From: Jeff Goeders Date: Tue, 16 Nov 2021 17:46:53 -0700 Subject: [PATCH 2/2] Add x,y location of source/sink in node_coordinate_to_string Signed-off-by: Jeff Goeders --- vpr/src/device/rr_graph_view.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vpr/src/device/rr_graph_view.h b/vpr/src/device/rr_graph_view.h index 7267f1c394f..0d202b03e75 100644 --- a/vpr/src/device/rr_graph_view.h +++ b/vpr/src/device/rr_graph_view.h @@ -202,11 +202,11 @@ class RRGraphView { // and the end to the lower coordinate start_x = " (" + std::to_string(node_xhigh(node)) + ","; //start and end coordinates are the same for OPINs and IPINs start_y = std::to_string(node_yhigh(node)) + ")"; - end_x = ""; - end_y = ""; - arrow = ""; - } - if (node_type(node) == CHANX || node_type(node) == CHANY) { //for channels, we would like to describe the component with segment specific information + } else if (node_type(node) == SOURCE || node_type(node) == SINK) { + // For SOURCE and SINK the starting and ending coordinate are identical, so just use start + start_x = "(" + std::to_string(node_xhigh(node)) + ","; + start_y = std::to_string(node_yhigh(node)) + ")"; + } else if (node_type(node) == CHANX || node_type(node) == CHANY) { //for channels, we would like to describe the component with segment specific information RRIndexedDataId cost_index = node_cost_index(node); int seg_index = rr_indexed_data_[cost_index].seg_index; coordinate_string += rr_segments_[seg_index].name; //Write the segment name