Skip to content

Commit c070fdc

Browse files
author
Nathan Shreve
committed
Fixed bug and eliminated SINK error checking
1 parent 6988bf5 commit c070fdc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

libs/librrgraph/src/base/check_rr_graph.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,10 @@ void check_rr_node(const RRGraphView& rr_graph,
394394
VPR_FATAL_ERROR(VPR_ERROR_ROUTE,
395395
"in check_rr_node: node %d (type %d) is at an illegal clb location (%d, %d).\n", inode, rr_type, xlow, ylow);
396396
}
397-
if (xlow != (xhigh - type->width + 1) || ylow != (yhigh - type->height + 1)) {
398-
VPR_FATAL_ERROR(VPR_ERROR_ROUTE,
399-
"in check_rr_node: node %d (type %d) has endpoints (%d,%d) and (%d,%d)\n", inode, rr_type, xlow, ylow, xhigh, yhigh);
400-
}
397+
// if (xlow != (xhigh - type->width + 1) || ylow != (yhigh - type->height + 1)) {
398+
// VPR_FATAL_ERROR(VPR_ERROR_ROUTE,
399+
// "in check_rr_node: node %d (type %d) has endpoints (%d,%d) and (%d,%d)\n", inode, rr_type, xlow, ylow, xhigh, yhigh);
400+
// }
401401
break;
402402
case IPIN:
403403
case OPIN:

libs/librrgraph/src/base/rr_graph_utils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,16 @@ void set_sink_locs(const RRGraphView& rr_graph, RRGraphBuilder& rr_graph_builder
174174
walk_cluster_recursive(rr_graph, node_fanins, sink_ipins, node_id, node_id);
175175
}
176176

177-
// Set SINK locations based on "cluster-edge" OPINs and IPINs
177+
// Set SINK locations based on "cluster-edge" IPINs
178178
for (const auto& node_pins : sink_ipins) {
179179
const auto& pin_set = node_pins.second;
180180

181181
if (pin_set.empty())
182182
continue;
183183

184184
// Use float so that we can take average later
185-
std::vector<float> x_coords(pin_set.size());
186-
std::vector<float> y_coords(pin_set.size());
185+
std::vector<float> x_coords;
186+
std::vector<float> y_coords;
187187

188188
// Add coordinates of each "cluster-edge" pin to vectors
189189
for (const auto& pin : pin_set) {

0 commit comments

Comments
 (0)