From 5bd45498dc0a147382997511b355a80623060784 Mon Sep 17 00:00:00 2001 From: Muhammad Haris Zafar Date: Wed, 27 Oct 2021 12:44:45 +0500 Subject: [PATCH 1/2] Adding api validate 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 c8baa9619c4..58b369442fd 100644 --- a/vpr/src/device/rr_graph_builder.h +++ b/vpr/src/device/rr_graph_builder.h @@ -117,6 +117,11 @@ class RRGraphBuilder { return node_storage_.count_rr_switches(num_arch_switches, arch_switch_inf, arch_switch_fanins); } + /** brief Validate that edge data is partitioned correctly */ + inline bool validate() const { + return node_storage_.validate(); + } + /* -- Internal data storage -- */ private: /* TODO: When the refactoring effort finishes, From b3b015df5dcd54ce043c63bc3432a2119ed40c3d Mon Sep 17 00:00:00 2001 From: Muhammad Haris Zafar Date: Mon, 1 Nov 2021 10:03:49 +0500 Subject: [PATCH 2/2] Updating comment --- vpr/src/device/rr_graph_builder.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vpr/src/device/rr_graph_builder.h b/vpr/src/device/rr_graph_builder.h index ce2372eae8a..53c0b4d0feb 100644 --- a/vpr/src/device/rr_graph_builder.h +++ b/vpr/src/device/rr_graph_builder.h @@ -122,7 +122,11 @@ class RRGraphBuilder { return node_storage_.count_rr_switches(num_arch_switches, arch_switch_inf, arch_switch_fanins); } - /** brief Validate that edge data is partitioned correctly */ + /** brief Validate that edge data is partitioned correctly + * @note This function is used to validate the correctness of the routing resource graph in terms + * of graph attributes. Strongly recommend to call it when you finish the building a routing resource + * graph. If you need more advance checks, which are related to architecture features, you should + * consider to use the check_rr_graph() function or build your own check_rr_graph() function. */ inline bool validate() const { return node_storage_.validate(); }