Skip to content

Commit fde5154

Browse files
author
Nathan Shreve
committed
Fixed bug in load_net_rr_terminals
1 parent 5782f78 commit fde5154

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libs/librrgraph/src/base/rr_graph_utils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ void set_sink_locs(const RRGraphView& rr_graph, RRGraphBuilder& rr_graph_builder
142142

143143
// Helper fn. to remove old sink locations from RRSpatialLookup
144144
auto remove_sink_locs_from_lookup = [&](Offset bottom_left, Offset top_right, Offset new_sink_loc, RRNodeId node, size_t layer, size_t ptc) {
145+
VTR_ASSERT(rr_graph_builder.node_lookup().find_node((int)layer, (int)new_sink_loc.x(), (int)new_sink_loc.y(), SINK, (int)ptc) != RRNodeId::INVALID());
146+
145147
for (size_t x = bottom_left.x(); x <= top_right.x(); ++x) {
146148
for (size_t y = bottom_left.y(); y <= top_right.y(); ++y) {
147149
if (x == new_sink_loc.x() && y == new_sink_loc.y()) /* The new sink location */

vpr/src/route/route_common.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,9 @@ static vtr::vector<ParentNetId, std::vector<RRNodeId>> load_net_rr_terminals(con
469469
if (inode != RRNodeId::INVALID())
470470
break;
471471
}
472+
473+
if (inode != RRNodeId::INVALID())
474+
break;
472475
}
473476
}
474477

0 commit comments

Comments
 (0)