Skip to content

Add a new API remap_rr_node_switch_indices() to RRGraphBuilder #1897

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
Oct 29, 2021
Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -108,6 +108,11 @@ class RRGraphBuilder {
node_storage_.add_node_side(id, new_side);
}

/** @brief It maps arch_switch_inf indicies to rr_switch_inf indicies. */
inline void remap_rr_node_switch_indices(const t_arch_switch_fanin& switch_fanin) {
node_storage_.remap_rr_node_switch_indices(switch_fanin);
}

/** @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.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ void load_rr_switch_from_arch_switch(int arch_switch_idx,
static void remap_rr_node_switch_indices(const t_arch_switch_fanin& switch_fanin) {
auto& device_ctx = g_vpr_ctx.mutable_device();

device_ctx.rr_nodes.remap_rr_node_switch_indices(switch_fanin);
device_ctx.rr_graph_builder.remap_rr_node_switch_indices(switch_fanin);
}

static void rr_graph_externals(const std::vector<t_segment_inf>& segment_inf,
Expand Down