Skip to content

Commit

Permalink
remove direction call for sink
Browse files Browse the repository at this point in the history
  • Loading branch information
duck2 committed Nov 14, 2024
1 parent b382e74 commit 69304fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vpr/src/route/sink_sampling.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ inline void convex_hull_downsample(ParentNetId net_id, const t_bb& net_bb, vtr::
RRNodeId rr_sink = route_ctx.net_rr_terminals[net_id][i];
if (!inside_bb(rr_sink, net_bb))
continue;
Direction dir = rr_graph.node_direction(rr_sink);
int x = dir == Direction::DEC ? rr_graph.node_xhigh(rr_sink) : rr_graph.node_xlow(rr_sink);
int y = dir == Direction::DEC ? rr_graph.node_yhigh(rr_sink) : rr_graph.node_ylow(rr_sink);
int x = rr_graph.node_xlow(rr_sink);
int y = rr_graph.node_ylow(rr_sink);
SinkPoint point{x, y, int(i)};
sink_points.push_back(point);
}
Expand Down

0 comments on commit 69304fe

Please sign in to comment.