File tree 1 file changed +10
-0
lines changed 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,15 @@ class RRGraphBuilder {
154
154
return node_storage_.count_rr_switches (num_arch_switches, arch_switch_inf, arch_switch_fanins);
155
155
}
156
156
157
+ /* * brief Validate that edge data is partitioned correctly
158
+ * @note This function is used to validate the correctness of the routing resource graph in terms
159
+ * of graph attributes. Strongly recommend to call it when you finish the building a routing resource
160
+ * graph. If you need more advance checks, which are related to architecture features, you should
161
+ * consider to use the check_rr_graph() function or build your own check_rr_graph() function. */
162
+ inline bool validate () const {
163
+ return node_storage_.validate ();
164
+ }
165
+
157
166
/* * @brief Init per node fan-in data. Should only be called after all edges have
158
167
* been allocated.
159
168
* @note
@@ -162,6 +171,7 @@ class RRGraphBuilder {
162
171
inline void init_fan_in () {
163
172
node_storage_.init_fan_in ();
164
173
}
174
+
165
175
/* -- Internal data storage -- */
166
176
private:
167
177
/* TODO: When the refactoring effort finishes,
You can’t perform that action at this time.
0 commit comments