From af95cc698651db0289a533408843b332784d1cdf Mon Sep 17 00:00:00 2001 From: Muhammad Haris Zafar Date: Tue, 26 Oct 2021 15:38:28 +0500 Subject: [PATCH 1/2] Adding api remap_rr_node_switch_indices to rr_graph_builder.h --- vpr/src/device/rr_graph_builder.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vpr/src/device/rr_graph_builder.h b/vpr/src/device/rr_graph_builder.h index 7f50541cf2b..27beeb85cc2 100644 --- a/vpr/src/device/rr_graph_builder.h +++ b/vpr/src/device/rr_graph_builder.h @@ -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); + } + /* -- Internal data storage -- */ private: /* TODO: When the refactoring effort finishes, From 26304062c8ed968b698d911c562e590e619a0076 Mon Sep 17 00:00:00 2001 From: Muhammad Haris Zafar Date: Tue, 26 Oct 2021 15:42:01 +0500 Subject: [PATCH 2/2] Replacing remap_rr_node_switch_indices from respective .cpp/.h files --- vpr/src/route/rr_graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpr/src/route/rr_graph.cpp b/vpr/src/route/rr_graph.cpp index e3de58d8ad4..03a9e43548c 100644 --- a/vpr/src/route/rr_graph.cpp +++ b/vpr/src/route/rr_graph.cpp @@ -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& segment_inf,