Skip to content

Commit

Permalink
remove unused includes and constants from timing_place_lookup.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilshahrouz committed Nov 29, 2024
1 parent 9ce28bf commit f188b79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion utils/route_diag/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static void profile_source(const Netlist<>& net_list,
VTR_LOG("\n");
}

static t_chan_width setup_chan_width(t_router_opts router_opts,
static t_chan_width setup_chan_width(const t_router_opts& router_opts,
t_chan_width_dist chan_width_dist) {
/*we give plenty of tracks, this increases routability for the */
/*lookup table generation */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ static void generic_compute_matrix_dijkstra_expansion(RouterDelayProfiler& /*rou
bool measure_directconnect,
const std::set<std::string>& allowed_types,
bool is_flat) {
auto& device_ctx = g_vpr_ctx.device();
const auto& device_ctx = g_vpr_ctx.device();

t_physical_tile_type_ptr src_type = device_ctx.grid.get_physical_type({source_x, source_y, from_layer_num});
bool is_allowed_type = allowed_types.empty() || allowed_types.find(src_type->name) != allowed_types.end();
Expand Down
24 changes: 2 additions & 22 deletions vpr/src/place/timing_place_lookup.cpp
Original file line number Diff line number Diff line change
@@ -1,47 +1,27 @@

#include <cmath>
#include <limits>
#include "timing_place_lookup.h"

#include "rr_graph_fwd.h"
#include "vtr_assert.h"
#include "vtr_ndmatrix.h"
#include "vtr_log.h"
#include "vtr_util.h"
#include "vtr_math.h"
#include "vtr_memory.h"

#include "vtr_time.h"
#include "vtr_geometry.h"

#include "arch_util.h"
#include "vpr_types.h"
#include "globals.h"
#include "place_and_route.h"
#include "route_net.h"
#include "timing_place_lookup.h"
#include "read_xml_arch_file.h"
#include "atom_netlist.h"

// all functions in profiling:: namespace, which are only activated if PROFILE is defined
#include "route_profiling.h"
#include "router_delay_profiling.h"
#include "place_delay_model.h"
#include "simple_delay_model.h"
#include "delta_delay_model.h"
#include "override_delay_model.h"

/*To compute delay between blocks we calculate the delay between */
/*different nodes in the FPGA. From this procedure we generate
* a lookup table which tells us the delay between different locations in*/
/*the FPGA */

/*the delta arrays are used to contain the best case routing delay */
/*between different locations on the FPGA. */

//#define VERBOSE

constexpr float UNINITIALIZED_DELTA = -1; //Indicates the delta delay value has not been calculated
constexpr float EMPTY_DELTA = -2; //Indicates delta delay from/to an EMPTY block
constexpr float IMPOSSIBLE_DELTA = std::numeric_limits<float>::infinity(); //Indicates there is no valid delta delay

/*** Function Prototypes *****/
static t_chan_width setup_chan_width(const t_router_opts& router_opts,
Expand Down

0 comments on commit f188b79

Please sign in to comment.