Skip to content

Add a new API make_edges_as_rr_switch_ids() to RRGraphBuilder #1902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions vpr/src/device/rr_graph_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ class RRGraphBuilder {
node_storage_.remap_rr_node_switch_indices(switch_fanin);
}

/** @brief Marks that edge switch values are rr switch indicies*/
inline void mark_edges_as_rr_switch_ids() {
node_storage_.mark_edges_as_rr_switch_ids();
}

/** @brief Counts the number of rr switches needed based on fan in to support mux
* size dependent switch delays. */
inline size_t count_rr_switches(
Expand Down
2 changes: 1 addition & 1 deletion vpr/src/route/rr_graph_uxsdcxx_serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
// Partition the rr graph edges for efficient access to
// configurable/non-configurable edge subsets. Must be done after RR
// switches have been allocated.
rr_nodes_->mark_edges_as_rr_switch_ids();
rr_graph_builder_->mark_edges_as_rr_switch_ids();
rr_nodes_->partition_edges();

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