Skip to content

Commit d5f50fc

Browse files
author
Nathan Shreve
committed
Fixed bug that arose due to RRSpatialLookup update
1 parent a080780 commit d5f50fc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

libs/librrgraph/src/base/rr_graph_utils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ void set_sink_locs(const RRGraphView& rr_graph, RRGraphBuilder& rr_graph_builder
175175
size_t pin_x = rr_graph.node_xlow(pin);
176176
size_t pin_y = rr_graph.node_ylow(pin);
177177

178-
VTR_ASSERT_SAFE(pin_x == rr_graph.node_xhigh(pin));
179-
VTR_ASSERT_SAFE(pin_y == rr_graph.node_yhigh(pin));
178+
VTR_ASSERT_SAFE(pin_x == (size_t)rr_graph.node_xhigh(pin));
179+
VTR_ASSERT_SAFE(pin_y == (size_t)rr_graph.node_yhigh(pin));
180180

181181
x_coords.push_back((float)pin_x);
182182
y_coords.push_back((float)pin_y);
@@ -191,7 +191,7 @@ void set_sink_locs(const RRGraphView& rr_graph, RRGraphBuilder& rr_graph_builder
191191
if (x == (size_t)x_avg && y == (size_t)y_avg)
192192
continue;
193193

194-
rr_graph_builder.node_lookup().remove_node(node_id, tile_layer, x, y, SINK, sink_ptc);
194+
rr_graph_builder.node_lookup().remove_node(node_id, (int)tile_layer, (int)x, (int)y, SINK, sink_ptc);
195195
}
196196
}
197197

vpr/src/place/timing_place_lookup.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,8 @@ static void generic_compute_matrix_dijkstra_expansion(
523523
VTR_ASSERT(sink_ptc != OPEN);
524524
RRNodeId sink_rr_node = device_ctx.rr_graph.node_lookup().find_node(layer_num, sink_x, sink_y, SINK, sink_ptc);
525525

526-
VTR_ASSERT(sink_rr_node != RRNodeId::INVALID());
526+
if (sink_rr_node == RRNodeId::INVALID())
527+
continue;
527528

528529
if (!measure_directconnect && directconnect_exists(source_rr_node, sink_rr_node)) {
529530
//Skip if we shouldn't measure direct connects and a direct connect exists

0 commit comments

Comments
 (0)