Skip to content

Commit 2953937

Browse files
authored
Merge pull request #1900 from RapidSilicon/api_partition_edges
Add a new API partition_edges() to RRGraphBuilder
2 parents 89dffd5 + 7af902a commit 2953937

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

vpr/src/device/rr_graph_builder.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ class RRGraphBuilder {
178178
return node_storage_.validate();
179179
}
180180

181+
/** @brief Sorts edge data such that configurable edges appears before
182+
* non-configurable edges. */
183+
inline void partition_edges() {
184+
node_storage_.partition_edges();
185+
}
186+
181187
/** @brief Init per node fan-in data. Should only be called after all edges have
182188
* been allocated.
183189
* @note

vpr/src/route/rr_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ static void build_rr_graph(const t_graph_type graph_type,
725725

726726
//Partition the rr graph edges for efficient access to configurable/non-configurable
727727
//edge subsets. Must be done after RR switches have been allocated
728-
device_ctx.rr_nodes.partition_edges();
728+
device_ctx.rr_graph_builder.partition_edges();
729729

730730
//Save the channel widths for the newly constructed graph
731731
device_ctx.chan_width = nodes_per_chan;

vpr/src/route/rr_graph_uxsdcxx_serializer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
959959
// configurable/non-configurable edge subsets. Must be done after RR
960960
// switches have been allocated.
961961
rr_graph_builder_->mark_edges_as_rr_switch_ids();
962-
rr_nodes_->partition_edges();
962+
rr_graph_builder_->partition_edges();
963963

964964
for (int source_node = 0; source_node < (ssize_t)rr_nodes_->size(); ++source_node) {
965965
int num_edges = rr_nodes_->num_edges(RRNodeId(source_node));

0 commit comments

Comments
 (0)