Skip to content

Commit c3ba21c

Browse files
author
Nathan Shreve
committed
RRSpatialLookup::mirror_nodes() no longer accepts SINK nodes
1 parent fde5154 commit c3ba21c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

libs/librrgraph/src/base/rr_spatial_lookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void RRSpatialLookup::mirror_nodes(const int layer,
290290
const vtr::Point<int>& des_coord,
291291
t_rr_type type,
292292
e_side side) {
293-
VTR_ASSERT(SOURCE == type || SINK == type);
293+
VTR_ASSERT(SOURCE == type);
294294
resize_nodes(layer, des_coord.x(), des_coord.y(), type, side);
295295
rr_node_indices_[type][layer][des_coord.x()][des_coord.y()][side] = rr_node_indices_[type][layer][src_coord.x()][src_coord.y()][side];
296296
}

libs/librrgraph/src/base/rr_spatial_lookup.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,17 @@ class RRSpatialLookup {
185185
e_side side = SIDES[0]);
186186

187187
/**
188-
* @brief Mirror the last dimension of a look-up, i.e., a list of nodes, from a source coordinate to
188+
* @brief Mirror the last dimension of a look-up, i.e., a list of nodes, from a source coordinate to
189189
* a destination coordinate.
190190
*
191-
* This function is mostly need by SOURCE and SINK nodes which are indexable in multiple locations.
191+
* This function is mostly need by SOURCE nodes which are indexable in multiple locations.
192192
* Considering a bounding box (layer, x, y)->(layer, x + width, y + height) of a multi-height and multi-width grid,
193-
* SOURCE and SINK nodes are indexable in any location inside the boundry.
193+
* SOURCE nodes are indexable in any location inside the boundary.
194194
*
195-
* An example of usage:
195+
* An example of usage:
196196
*
197197
*
198-
* ```
198+
* ```
199199
* // Create a empty lookup
200200
* RRSpatialLookup rr_lookup;
201201
* // Adding other nodes ...
@@ -206,21 +206,21 @@ class RRSpatialLookup {
206206
* TOP);
207207
* ```
208208
*
209-
* @note currently this function only accepts SOURCE/SINK nodes. May unlock for the other types
209+
* @note currently this function only accepts SOURCE nodes. May unlock for the other types
210210
* depending on needs
211211
*/
212212
/*
213-
* TODO: Consider to make a high-level API to duplicate the nodes for large blocks.
213+
* TODO: Consider to make a high-level API to duplicate the nodes for large blocks.
214214
* Then this API can become a private one
215-
* For example,
215+
* For example,
216216
*
217217
*
218218
* ```
219219
* expand_nodes(source_coordinate, bounding_box_coordinate, type, side);
220220
* ```
221221
*
222-
* Alternatively, we can rework the ``find_node()`` API so that we always search the lowest (x,y)
223-
* corner when dealing with large blocks. But this may require the data structure to be dependent
222+
* Alternatively, we can rework the ``find_node()`` API so that we always search the lowest (x,y)
223+
* corner when dealing with large blocks. But this may require the data structure to be dependent
224224
* on DeviceGrid information (it needs to identify if a grid has height > 1 as well as width > 1)
225225
*/
226226
void mirror_nodes(const int layer,

0 commit comments

Comments
 (0)