Skip to content

Commit 1f7fd26

Browse files
tangxifanvaughnbetz
authored andcommitted
[VPR] Patch comments and remove the inproper assert (which should be enabled later when remove_node() API is available in rr_spatial_lookup)
1 parent f3ea2f9 commit 1f7fd26

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

vpr/src/base/vpr_context.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ struct DeviceContext : public Context {
165165

166166
/* TODO: remove this interface from device_context once the code refactoring is completed
167167
* because it should be part of the rr_graph view
168+
* TODO: Currently, we use reference pointers to ensure that the rr_spatial_lookup is always
169+
* synchronized with the rr_node_indices but this causes a lot of confusion for developers
170+
* The temporary fix should be patched as soon as possible.
168171
*/
169172
RRSpatialLookup rr_spatial_lookup{rr_node_indices};
170173

vpr/src/device/rr_spatial_lookup.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ void RRSpatialLookup::add_node(RRNodeId node,
8080
t_rr_type type,
8181
int ptc,
8282
e_side side) {
83-
VTR_ASSERT(node);
8483
VTR_ASSERT_SAFE(3 == rr_node_indices_[type].ndims());
8584

8685
/* Expand the fast look-up if the new node is out-of-range

vpr/src/device/rr_spatial_lookup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class RRSpatialLookup {
4242
* - track number of a routing wire in a channel. They would normally go from 0
4343
* to channel_width - 1 at that (x,y)
4444
*
45+
* An invalid id will be returned if the node does not exist
46+
*
4547
* Note that for segments (CHANX and CHANY) of length > 1, the segment is
4648
* given an rr_index based on the (x,y) location at which it starts (i.e.
4749
* lowest (x,y) location at which this segment exists).
@@ -71,8 +73,6 @@ class RRSpatialLookup {
7173
* - track index in a routing channel when type is CHANX/CHANY
7274
* - side is the side of node on the tile, applicable to OPIN/IPIN
7375
*
74-
* An invalid id will be returned if the node does not exist
75-
*
7676
* Note that a node added with this call will not create a node in the rr_graph_storage node list
7777
* You MUST add the node in the rr_graph_storage so that the node is valid
7878
*

0 commit comments

Comments
 (0)