Skip to content

Commit 89dffd5

Browse files
authored
Merge pull request #1902 from RapidSilicon/api_make_edges_switch_ids
Add a new API make_edges_as_rr_switch_ids() to RRGraphBuilder
2 parents efbad52 + 1fc8b8a commit 89dffd5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

vpr/src/device/rr_graph_builder.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ class RRGraphBuilder {
145145
node_storage_.remap_rr_node_switch_indices(switch_fanin);
146146
}
147147

148+
/** @brief Marks that edge switch values are rr switch indicies*/
149+
inline void mark_edges_as_rr_switch_ids() {
150+
node_storage_.mark_edges_as_rr_switch_ids();
151+
}
152+
148153
/** @brief Counts the number of rr switches needed based on fan in to support mux
149154
* size dependent switch delays. */
150155
inline size_t count_rr_switches(

vpr/src/route/rr_graph_uxsdcxx_serializer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
958958
// Partition the rr graph edges for efficient access to
959959
// configurable/non-configurable edge subsets. Must be done after RR
960960
// switches have been allocated.
961-
rr_nodes_->mark_edges_as_rr_switch_ids();
961+
rr_graph_builder_->mark_edges_as_rr_switch_ids();
962962
rr_nodes_->partition_edges();
963963

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

0 commit comments

Comments
 (0)