Skip to content

Small improvements to string description of rr nodes #1915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions vpr/src/device/rr_graph_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vpr/src/route/rr_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down