From f54f46483bcfe56808992773ac017681d7caccd3 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 6 Mar 2020 17:02:22 -0700 Subject: [PATCH] start debugging tileable rr_graph generator --- vpr/src/base/vpr_api.cpp | 5 +++++ vpr/src/route/rr_graph.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/vpr/src/base/vpr_api.cpp b/vpr/src/base/vpr_api.cpp index f2900d0d2..53ec0e732 100644 --- a/vpr/src/base/vpr_api.cpp +++ b/vpr/src/base/vpr_api.cpp @@ -829,6 +829,11 @@ void vpr_create_rr_graph(t_vpr_setup& vpr_setup, const t_arch& arch, int chan_wi graph_type = GRAPH_GLOBAL; } else { graph_type = (det_routing_arch->directionality == BI_DIRECTIONAL ? GRAPH_BIDIR : GRAPH_UNIDIR); + /* Branch on tileable routing */ + if ( (UNI_DIRECTIONAL == det_routing_arch->directionality) + && (true == arch.tileable) ) { + graph_type = GRAPH_UNIDIR_TILEABLE; + } } int warnings = 0; diff --git a/vpr/src/route/rr_graph.cpp b/vpr/src/route/rr_graph.cpp index b21310ad4..f80c450c7 100644 --- a/vpr/src/route/rr_graph.cpp +++ b/vpr/src/route/rr_graph.cpp @@ -1504,6 +1504,7 @@ void free_rr_graph() { /* Xifan Tang - Clear the rr_graph object */ device_ctx.rr_graph.clear(); + device_ctx.rr_node_track_ids.clear(); } static void build_rr_sinks_sources(const int i,