Skip to content

Commit e5f8663

Browse files
author
Muhammad Haris Zafar
committed
Adding api init_fan_in to rr_graph_builder.h
1 parent 82b7a2d commit e5f8663

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vpr/src/device/rr_graph_builder.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ class RRGraphBuilder {
117117
return node_storage_.count_rr_switches(num_arch_switches, arch_switch_inf, arch_switch_fanins);
118118
}
119119

120+
/** @brief Init per node fan-in data. Should only be called after all edges have
121+
* been allocated.
122+
* @note
123+
* This is an expensive, O(N), operation so it should be called once you
124+
* have a complete rr-graph and not called often. */
125+
inline void init_fan_in() {
126+
node_storage_.init_fan_in();
127+
}
120128
/* -- Internal data storage -- */
121129
private:
122130
/* TODO: When the refactoring effort finishes,

0 commit comments

Comments
 (0)