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
Copy file name to clipboardExpand all lines: vpr/src/route/rr_graph_generation/rr_graph_interposer.cpp
+40-23Lines changed: 40 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,11 @@
13
13
#include"vpr_error.h"
14
14
#include"vtr_assert.h"
15
15
16
-
#include"interposer_cut.h"
16
+
#include"rr_graph_interposer.h"
17
17
18
18
/**
19
-
* @brief Takes location of a source and a sink and determines wether it crosses cut_loc or not. For example, the interval (1, 4) is cut by 3, while it is not cut by 5 or 0.
19
+
* @brief Takes location of a source and a sink and determines wether it crosses cut_loc or not.
20
+
* For example, the interval (1, 4) is cut by 3, while it is not cut by 5 or 0.
20
21
*/
21
22
staticboolshould_cut(int src_loc, int sink_loc, int cut_loc) {
22
23
int src_delta = src_loc - cut_loc;
@@ -34,22 +35,27 @@ static bool should_cut(int src_loc, int sink_loc, int cut_loc) {
34
35
* @brief Calculates the starting x point of node based on it's directionality.
VPR_FATAL_ERROR(VPR_ERROR_ROUTE, "Bidir node has no starting point.");
@@ -143,7 +154,8 @@ std::vector<RREdgeId> mark_interposer_cut_edges_for_removal(const RRGraphView& r
143
154
*
144
155
* This is a low level function, you should use cut_channel_node that wraps this up in a nicer API.
145
156
*/
146
-
staticvoidcut_chan_y_node(RRNodeId node, int x_low, int y_low, int x_high, int y_high, int layer, int ptc_num, int cut_loc_y, Direction node_direction, RRGraphBuilder& rr_graph_builder, RRSpatialLookup& spatial_lookup) {
157
+
staticvoidcut_chan_y_node(RRNodeId node, int x_low, int y_low, int x_high, int y_high, int layer, int ptc_num, int cut_loc_y,
158
+
Direction node_direction, RRGraphBuilder& rr_graph_builder, RRSpatialLookup& spatial_lookup) {
@@ -172,7 +184,8 @@ static void cut_chan_y_node(RRNodeId node, int x_low, int y_low, int x_high, int
172
184
*
173
185
* This is a low level function, you should use cut_channel_node that wraps this up in a nicer API.
174
186
*/
175
-
staticvoidcut_chan_x_node(RRNodeId node, int x_low, int y_low, int x_high, int y_high, int layer, int ptc_num, int cut_loc_x, Direction node_direction, RRGraphBuilder& rr_graph_builder, RRSpatialLookup& spatial_lookup) {
187
+
staticvoidcut_chan_x_node(RRNodeId node, int x_low, int y_low, int x_high, int y_high, int layer, int ptc_num, int cut_loc_x,
188
+
Direction node_direction, RRGraphBuilder& rr_graph_builder, RRSpatialLookup& spatial_lookup) {
176
189
if (node_direction == Direction::INC) {
177
190
// Anything to the right of cut_loc_x shouldn't exist
0 commit comments