Skip to content

Commit b01dffa

Browse files
authored
Merge pull request #1897 from RapidSilicon/api_remap_switch_indices
Add a new API remap_rr_node_switch_indices() to RRGraphBuilder
2 parents fd81de5 + 2c7549d commit b01dffa

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
@@ -113,6 +113,11 @@ class RRGraphBuilder {
113113
node_storage_.add_node_side(id, new_side);
114114
}
115115

116+
/** @brief It maps arch_switch_inf indicies to rr_switch_inf indicies. */
117+
inline void remap_rr_node_switch_indices(const t_arch_switch_fanin& switch_fanin) {
118+
node_storage_.remap_rr_node_switch_indices(switch_fanin);
119+
}
120+
116121
/** @brief Counts the number of rr switches needed based on fan in to support mux
117122
* size dependent switch delays. */
118123
inline size_t count_rr_switches(

vpr/src/route/rr_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ void load_rr_switch_from_arch_switch(int arch_switch_idx,
893893
static void remap_rr_node_switch_indices(const t_arch_switch_fanin& switch_fanin) {
894894
auto& device_ctx = g_vpr_ctx.mutable_device();
895895

896-
device_ctx.rr_nodes.remap_rr_node_switch_indices(switch_fanin);
896+
device_ctx.rr_graph_builder.remap_rr_node_switch_indices(switch_fanin);
897897
}
898898

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

0 commit comments

Comments
 (0)