|
1 |
| -#include <cstdio> |
2 |
| -#include <cstring> |
| 1 | + |
3 | 2 | #include <cmath>
|
4 |
| -#include <time.h> |
5 | 3 | #include <limits>
|
6 | 4 |
|
7 | 5 | #include "rr_graph_fwd.h"
|
|
15 | 13 | #include "vtr_geometry.h"
|
16 | 14 |
|
17 | 15 | #include "arch_util.h"
|
18 |
| - |
19 | 16 | #include "vpr_types.h"
|
20 | 17 | #include "globals.h"
|
21 | 18 | #include "place_and_route.h"
|
22 |
| -#include "route_common.h" |
23 | 19 | #include "route_net.h"
|
24 |
| -#include "route_export.h" |
25 |
| -#include "rr_graph.h" |
26 | 20 | #include "timing_place_lookup.h"
|
27 | 21 | #include "read_xml_arch_file.h"
|
28 |
| -#include "echo_files.h" |
29 | 22 | #include "atom_netlist.h"
|
30 |
| -#include "rr_graph2.h" |
31 |
| -#include "place_util.h" |
| 23 | + |
32 | 24 | // all functions in profiling:: namespace, which are only activated if PROFILE is defined
|
33 | 25 | #include "route_profiling.h"
|
34 | 26 | #include "router_delay_profiling.h"
|
@@ -167,7 +159,7 @@ static int get_longest_segment_length(std::vector<t_segment_inf>& segment_inf);
|
167 | 159 | static void fix_empty_coordinates(vtr::NdMatrix<float, 3>& delta_delays);
|
168 | 160 | static void fix_uninitialized_coordinates(vtr::NdMatrix<float, 3>& delta_delays);
|
169 | 161 |
|
170 |
| -static float find_neightboring_average(vtr::NdMatrix<float, 3>& matrix, t_physical_tile_loc tile_loc, int max_distance); |
| 162 | +static float find_neighboring_average(vtr::NdMatrix<float, 3>& matrix, t_physical_tile_loc tile_loc, int max_distance); |
171 | 163 |
|
172 | 164 | /******* Globally Accessible Functions **********/
|
173 | 165 |
|
@@ -894,7 +886,7 @@ float delay_reduce(std::vector<float>& delays, e_reducer reducer) {
|
894 | 886 | * If no legal values are found to average over with a range of max_distance,
|
895 | 887 | * we return IMPOSSIBLE_DELTA.
|
896 | 888 | */
|
897 |
| -static float find_neightboring_average( |
| 889 | +static float find_neighboring_average( |
898 | 890 | vtr::NdMatrix<float, 3>& matrix,
|
899 | 891 | t_physical_tile_loc tile_loc,
|
900 | 892 | int max_distance) {
|
@@ -949,7 +941,7 @@ static void fix_empty_coordinates(vtr::NdMatrix<float, 3>& delta_delays) {
|
949 | 941 | for (int delta_x = 0; delta_x < (int)delta_delays.dim_size(1); ++delta_x) {
|
950 | 942 | for (int delta_y = 0; delta_y < (int)delta_delays.dim_size(2); ++delta_y) {
|
951 | 943 | if (delta_delays[layer_num][delta_x][delta_y] == EMPTY_DELTA) {
|
952 |
| - delta_delays[layer_num][delta_x][delta_y] = find_neightboring_average(delta_delays, {delta_x, delta_y, layer_num}, kMaxAverageDistance); |
| 944 | + delta_delays[layer_num][delta_x][delta_y] = find_neighboring_average(delta_delays, {delta_x, delta_y, layer_num}, kMaxAverageDistance); |
953 | 945 | }
|
954 | 946 | }
|
955 | 947 | }
|
@@ -987,7 +979,7 @@ static void fill_impossible_coordinates(vtr::NdMatrix<float, 3>& delta_delays) {
|
987 | 979 | for (int delta_x = 0; delta_x < (int)delta_delays.dim_size(1); ++delta_x) {
|
988 | 980 | for (int delta_y = 0; delta_y < (int)delta_delays.dim_size(2); ++delta_y) {
|
989 | 981 | if (delta_delays[layer_num][delta_x][delta_y] == IMPOSSIBLE_DELTA) {
|
990 |
| - delta_delays[layer_num][delta_x][delta_y] = find_neightboring_average( |
| 982 | + delta_delays[layer_num][delta_x][delta_y] = find_neighboring_average( |
991 | 983 | delta_delays, {delta_x, delta_y, layer_num}, kMaxAverageDistance);
|
992 | 984 | }
|
993 | 985 | }
|
|
0 commit comments