Skip to content

Commit 93aba7c

Browse files
[Infra] Cleaned Up Header Files in Route Folder
Continued the header file cleanup effort in the route folder. Some of these files may need to be revisited in more detail, but got some of the major header include issues. Found that some definitions were in the wrong place, so moved them to the correct implementation file.
1 parent 7599927 commit 93aba7c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+196
-220
lines changed

vpr/src/route/NestedNetlistRouter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/** @file Nested parallel case for NetlistRouter */
44
#include "netlist_routers.h"
5+
#include "partition_tree.h"
56
#include "vtr_optional.h"
67
#include "vtr_thread_pool.h"
78
#include "serial_connection_router.h"

vpr/src/route/SerialNetlistRouter.tpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
/** @file Templated implementations for SerialNetlistRouter */
44

55
#include "SerialNetlistRouter.h"
6+
#include "partition_tree.h"
67
#include "route_net.h"
8+
#include "route_utils.h"
79
#include "vtr_time.h"
810

911
template<typename HeapType>

vpr/src/route/annotate_routing.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
* from VPR to OpenFPGA. (i.e. create a mapping from RRNodeIds to ClusterNetIds)
44
*******************************************************************/
55

6+
#include "describe_rr_node.h"
67
#include "vpr_error.h"
7-
#include "vtr_assert.h"
88
#include "vtr_time.h"
99
#include "vtr_log.h"
1010

1111
#include "route_utils.h"
12-
#include "rr_graph.h"
1312

1413
#include "annotate_routing.h"
1514

vpr/src/route/annotate_routing.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
#ifndef ANNOTATE_ROUTING_H
22
#define ANNOTATE_ROUTING_H
33

4-
#include "vpr_context.h"
4+
#include "clustered_netlist_fwd.h"
5+
#include "rr_graph_fwd.h"
6+
#include "vtr_vector.h"
7+
8+
struct AtomContext;
9+
struct ClusteringContext;
10+
struct DeviceContext;
511

612
/********************************************************************
713
* Create a mapping between each rr_node and its mapped nets

vpr/src/route/check_route.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef VPR_CHECK_ROUTE_H
22
#define VPR_CHECK_ROUTE_H
3-
#include "physical_types.h"
3+
4+
#include "netlist.h"
45
#include "vpr_types.h"
5-
#include "route_common.h"
66

77
void check_route(const Netlist<>& net_list,
88
enum e_route_type route_type,

vpr/src/route/connection_based_routing.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#pragma once
2+
23
#include <vector>
34
#include <unordered_map>
4-
#include "route_tree_fwd.h"
5-
#include "vpr_types.h"
65
#include "timing_info.h"
76
#include "vpr_net_pins_matrix.h"
7+
#include "connection_based_routing_fwd.h"
88

99
/***************** Connection based rerouting **********************/
1010
// encompasses both incremental rerouting through route tree pruning

vpr/src/route/connection_router.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
*/
2323

2424
#include "connection_router_interface.h"
25+
#include "globals.h"
2526
#include "rr_graph_storage.h"
26-
#include "route_common.h"
2727
#include "router_lookahead.h"
2828
#include "route_tree.h"
29-
#include "rr_rc_data.h"
3029
#include "router_stats.h"
30+
#include "rr_graph_view.h"
3131
#include "spatial_route_tree_lookup.h"
3232

3333
/**

vpr/src/route/connection_router.tpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <algorithm>
66
#include "describe_rr_node.h"
7+
#include "route_common.h"
78
#include "rr_graph_fwd.h"
89
#include "vpr_utils.h"
910

vpr/src/route/connection_router_interface.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#ifndef _CONNECTION_ROUTER_INTERFACE_H
22
#define _CONNECTION_ROUTER_INTERFACE_H
33

4-
#include <utility>
5-
6-
#include "heap_type.h"
74
#include "route_tree_fwd.h"
85
#include "rr_graph_fwd.h"
96
#include "vpr_types.h"

vpr/src/route/edge_groups.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <stack>
44
#include "rr_graph_fwd.h"
5+
#include "vpr_context.h"
56

67
// Adds non-configurable (undirected) edge to be grouped.
78
//

0 commit comments

Comments
 (0)