Skip to content

Commit 5795252

Browse files
configurable_edges() API added
1 parent dc4a62f commit 5795252

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

vpr/src/device/rr_graph_view.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ class RRGraphView {
259259
return node_storage_.num_non_configurable_edges(node);
260260
}
261261

262+
/** @brief Get ID range for edges. This function is inlined for runtime optimization. */
263+
inline edge_idx_range configurable_edges(RRNodeId node) const {
264+
return node_storage_.configurable_edges(node);
265+
}
266+
262267
/** @brief Get ID range for edges. This function is inlined for runtime optimization. */
263268
inline edge_idx_range edges(RRNodeId node) const {
264269
return node_storage_.edges(node);

vpr/src/route/check_rr_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void check_rr_graph(const t_graph_type graph_type,
184184
check_unbuffered_edges(inode);
185185

186186
//Check that all config/non-config edges are appropriately organized
187-
for (auto edge : device_ctx.rr_nodes[inode].configurable_edges()) {
187+
for (auto edge : rr_graph.configurable_edges(RRNodeId(inode))) {
188188
if (!device_ctx.rr_nodes[inode].edge_is_configurable(edge)) {
189189
VPR_FATAL_ERROR(VPR_ERROR_ROUTE, "in check_rr_graph: node %d edge %d is non-configurable, but in configurable edges",
190190
inode, edge);

vpr/src/route/rr_node_impl.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ inline t_rr_node t_rr_graph_storage::back() {
7171
return t_rr_node(this, RRNodeId(size() - 1));
7272
}
7373

74-
inline edge_idx_range t_rr_node::configurable_edges() const {
75-
return storage_->configurable_edges(id_);
76-
}
7774
inline edge_idx_range t_rr_node::non_configurable_edges() const {
7875
return storage_->non_configurable_edges(id_);
7976
}

0 commit comments

Comments
 (0)