Skip to content

Commit 8a3abba

Browse files
committed
created edge_sink_node
1 parent f28874f commit 8a3abba

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

vpr/src/device/rr_graph_view.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,13 @@ class RRGraphView {
254254
inline short edge_switch(RRNodeId id, t_edge_size iedge) const {
255255
return node_storage_.edge_switch(id, iedge);
256256
}
257+
/* Get the destination node for the iedge'th edge from specified RRNodeId.
258+
* //
259+
* // This method should generally not be used, and instead first_edge and
260+
* // last_edge should be used.*/
261+
inline RRNodeId edge_sink_node(RRNodeId id, t_edge_size iedge) const {
262+
return node_storage_.edge_sink_node(id, iedge);
263+
}
257264

258265
/** @brief The ptc_num carries different meanings for different node types
259266
* (true in VPR RRG that is currently supported, may not be true in customized RRG)

vpr/src/route/route_tree_timing.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,7 @@ static t_rt_node* add_non_configurable_to_route_tree(const int rr_node, const bo
421421
for (int iedge : device_ctx.rr_nodes[rr_node].non_configurable_edges()) {
422422
//Recursive case: expand children
423423
VTR_ASSERT(!device_ctx.rr_nodes[rr_node].edge_is_configurable(iedge));
424-
425-
int to_rr_node = device_ctx.rr_nodes[rr_node].edge_sink_node(iedge);
424+
int to_rr_node = size_t(rr_graph.edge_sink_node(RRNodeId(rr_node), iedge));
426425

427426
//Recurse
428427
t_rt_node* child_rt_node = add_non_configurable_to_route_tree(to_rr_node, true, visited);

0 commit comments

Comments
 (0)