diff --git a/vpr/src/device/rr_graph_builder.h b/vpr/src/device/rr_graph_builder.h index e6b2fdf6464..32914bc23e9 100644 --- a/vpr/src/device/rr_graph_builder.h +++ b/vpr/src/device/rr_graph_builder.h @@ -136,6 +136,15 @@ 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 + * @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(); + } + /** @brief Init per node fan-in data. Should only be called after all edges have * been allocated. * @note @@ -144,6 +153,7 @@ class RRGraphBuilder { inline void init_fan_in() { node_storage_.init_fan_in(); } + /* -- Internal data storage -- */ private: /* TODO: When the refactoring effort finishes,