Skip to content

Commit 8b7752f

Browse files
committed
Add x,y location of source/sink in node_coordinate_to_string
Signed-off-by: Jeff Goeders <[email protected]>
1 parent 4ac8ea0 commit 8b7752f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vpr/src/device/rr_graph_view.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ class RRGraphView {
202202
// and the end to the lower coordinate
203203
start_x = " (" + std::to_string(node_xhigh(node)) + ","; //start and end coordinates are the same for OPINs and IPINs
204204
start_y = std::to_string(node_yhigh(node)) + ")";
205-
end_x = "";
206-
end_y = "";
207-
arrow = "";
208-
}
209-
if (node_type(node) == CHANX || node_type(node) == CHANY) { //for channels, we would like to describe the component with segment specific information
205+
} else if (node_type(node) == SOURCE || node_type(node) == SINK) {
206+
// For SOURCE and SINK the starting and ending coordinate are identical, so just use start
207+
start_x = "(" + std::to_string(node_xhigh(node)) + ",";
208+
start_y = std::to_string(node_yhigh(node)) + ")";
209+
} else if (node_type(node) == CHANX || node_type(node) == CHANY) { //for channels, we would like to describe the component with segment specific information
210210
RRIndexedDataId cost_index = node_cost_index(node);
211211
int seg_index = rr_indexed_data_[cost_index].seg_index;
212212
coordinate_string += rr_segments_[seg_index].name; //Write the segment name

0 commit comments

Comments
 (0)