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
// check that the NoC tile has a capacity greater than 0 (can we assume it always will?) and if not then we cant draw anythign as the NoC tile wont be drawn
38
-
/* since the vector of routers all have a reference positions on the grid to the corresponding physical tile, just use the first router in the vector and get its position, then use this to get the capcity of a noc router tile
37
+
// check that the NoC tile has a capacity greater than 0 (can we assume it always will?) and if not then we cant draw anything as the NoC tile won't be drawn
38
+
/* since the vector of routers all have a reference positions on the grid to the corresponding physical tile, just use the first router in the vector and get its position, then use this to get the capacity of a noc router tile
39
39
*/
40
40
constauto& type = device_ctx.grid.get_physical_type({router_list.begin()->get_router_grid_position_x(),
// if we are here, then a parallel link wasnt found, so that means there is only a single link and there is no need to perform any shifting on the single link
313
+
if (parallel_link == NocLinkId::INVALID()) {
314
+
// if we are here, then a parallel link wasn't found, so that means there is only a single link and there is no need to perform any shifting on the single link
// we can check quickly if the link is vertical or horizontal without calculating the dot product. If it is vertical or horizontal then we just return. Otherwise we have to calculate it.
343
+
// we can check quickly if the link is vertical or horizontal without calculating the dot product. If it is vertical or horizontal then we just return. Otherwise, we have to calculate it.
344
344
345
345
// check if the link is vertical by determining if there is any horizontal change
346
346
if (vtr::isclose(x_coord_end - x_coord_start, 0.0)) {
// 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
289
-
for (auto sink_router_link : *sink_router_links) {
292
+
for (auto sink_router_link : sink_router_links) {
290
293
if (link_storage[sink_router_link].get_sink_router() == curr_source_router) {
0 commit comments