You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// go through the links of the sink router and the link that has the current source router as the sink router of the link is the parallel link we are looking for
226
-
for (autolink = sink_router_links->begin(); link != sink_router_links->end(); link++) {
227
-
if (link_storage[*link].get_sink_router() == curr_source_router) {
228
-
parallel_link = *link;
226
+
for (autosink_router_link : *sink_router_links) {
227
+
if (link_storage[sink_router_link].get_sink_router() == curr_source_router) {
@@ -154,7 +154,7 @@ bool XYRouting::move_to_next_router(NocRouterId& curr_router_id, int curr_router
154
154
// If the next router was already visited, then this link is not valid, so indicate this and move onto processing the next link.
155
155
if (found_next_router && !visited_next_router) {
156
156
// if we are here then the link is legal to traverse, so add it to the found route and traverse the link by moving to the router connected by this link
157
-
flow_route.push_back(*connecting_link);
157
+
flow_route.push_back(connecting_link);
158
158
curr_router_id = next_router_id;
159
159
160
160
// we found a suitable router to visit next, so add it to the set of visited routers
Copy file name to clipboardExpand all lines: vpr/src/noc/xy_routing.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ class XYRouting : public NocRouting {
140
140
* that is currently being visited on the FPGA
141
141
* @return RouteDirection The direction to travel next
142
142
*/
143
-
RouteDirection get_direction_to_travel(int sink_router_x_position, int sink_router_y_position, int curr_router_x_position, int curr_router_y_position);
143
+
staticRouteDirection get_direction_to_travel(int sink_router_x_position, int sink_router_y_position, int curr_router_x_position, int curr_router_y_position);
144
144
145
145
/**
146
146
* @brief Given the direction to travel next, this function determines
@@ -166,7 +166,7 @@ class XYRouting : public NocRouting {
166
166
* @return true A suitable link was found that we can traverse next
167
167
* @return false No suitable link was found that could be traversed
168
168
*/
169
-
boolmove_to_next_router(NocRouterId& curr_router_id, int curr_router_x_position, int curr_router_y_position, RouteDirection next_step_direction, std::vector<NocLinkId>& flow_route, std::unordered_set<NocRouterId>& visited_routers, const NocStorage& noc_model);
169
+
staticboolmove_to_next_router(NocRouterId& curr_router_id, int curr_router_x_position, int curr_router_y_position, RouteDirection next_step_direction, std::vector<NocLinkId>& flow_route, std::unordered_set<NocRouterId>& visited_routers, const NocStorage& noc_model);
0 commit comments