|
11 | 11 | #include "vtr_assert.h"
|
12 | 12 | #include "vtr_log.h"
|
13 | 13 |
|
| 14 | +#include "annotate_routing.h" |
| 15 | +#include "globals.h" |
14 | 16 | #include "vpr_error.h"
|
15 | 17 | #include "vpr_utils.h"
|
16 | 18 | #include "rr_graph2.h"
|
17 | 19 |
|
18 |
| -#include "annotate_routing.h" |
19 |
| - |
20 | 20 | #include "sync_netlists_to_routing_flat.h"
|
21 |
| -#include <algorithm> |
22 |
| -#include <unordered_map> |
23 |
| - |
24 |
| -#include "describe_rr_node.h" |
25 | 21 |
|
26 |
| -/* Include global variables of VPR */ |
27 |
| -#include "globals.h" |
| 22 | +static void get_intra_cluster_connections(const RouteTree& tree, std::vector<std::pair<RRNodeId, RRNodeId>>& out_connections); |
| 23 | +static void route_intra_cluster_conn(const t_pb_graph_pin* source_pin, const t_pb_graph_pin* sink_pin, AtomNetId net_id, t_pb* out_pb); |
| 24 | +static void sync_pb_routes_to_routing(void); |
| 25 | +static void sync_clustered_netlist_to_routing(void); |
| 26 | +static void fixup_atom_pb_graph_pin_mapping(void); |
28 | 27 |
|
29 | 28 | /* Output all intra-cluster connections for a RouteTreeNode */
|
30 |
| -void get_intra_cluster_connections(const RouteTree& tree, std::vector<std::pair<RRNodeId, RRNodeId>>& out_connections){ |
| 29 | +static void get_intra_cluster_connections(const RouteTree& tree, std::vector<std::pair<RRNodeId, RRNodeId>>& out_connections){ |
31 | 30 | auto& rr_graph = g_vpr_ctx.device().rr_graph;
|
32 | 31 |
|
33 | 32 | for(auto& node: tree.all_nodes()){
|
@@ -121,7 +120,7 @@ static void route_intra_cluster_conn(const t_pb_graph_pin* source_pin, const t_p
|
121 | 120 | }
|
122 | 121 | }
|
123 | 122 |
|
124 |
| -void sync_pb_routes_to_routing(){ |
| 123 | +static void sync_pb_routes_to_routing(void){ |
125 | 124 | auto& device_ctx = g_vpr_ctx.device();
|
126 | 125 | auto& atom_ctx = g_vpr_ctx.atom();
|
127 | 126 | auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
|
@@ -212,7 +211,7 @@ inline void rebuild_atom_nets_lookup(ClusteredNetlist::IdRemapper& remapped){
|
212 | 211 | }
|
213 | 212 |
|
214 | 213 | /** Regenerate clustered netlist nets from routing results */
|
215 |
| -void sync_clustered_netlist_to_routing(void){ |
| 214 | +static void sync_clustered_netlist_to_routing(void){ |
216 | 215 | auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
|
217 | 216 | auto& place_ctx = g_vpr_ctx.mutable_placement();
|
218 | 217 | auto& route_ctx = g_vpr_ctx.routing();
|
@@ -320,7 +319,7 @@ void sync_clustered_netlist_to_routing(void){
|
320 | 319 | }
|
321 | 320 |
|
322 | 321 | /** Fix up pin rotation maps and the atom pin -> pb graph pin lookup for every block */
|
323 |
| -void fixup_atom_pb_graph_pin_mapping(void){ |
| 322 | +static void fixup_atom_pb_graph_pin_mapping(void){ |
324 | 323 | auto& cluster_ctx = g_vpr_ctx.clustering();
|
325 | 324 | auto& atom_ctx = g_vpr_ctx.mutable_atom();
|
326 | 325 |
|
|
0 commit comments