Skip to content

Commit 6692776

Browse files
committed
[core] resolve conflicts
1 parent d0f15b1 commit 6692776

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed

vpr/src/route/rr_graph.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -593,14 +593,6 @@ static void alloc_rr_switch_inf(RRGraphBuilder& rr_graph_builder,
593593
t_arch_switch_fanin& arch_switch_fanins,
594594
const std::map<int, t_arch_switch_inf>& arch_sw_map);
595595

596-
static void rr_graph_externals(const std::vector<t_segment_inf>& segment_inf,
597-
const std::vector<t_segment_inf>& segment_inf_x,
598-
const std::vector<t_segment_inf>& segment_inf_y,
599-
int wire_to_rr_ipin_switch,
600-
enum e_base_cost_type base_cost_type);
601-
602-
static t_clb_to_clb_directs* alloc_and_load_clb_to_clb_directs(const std::vector<t_direct_inf>& directs, const int delayless_switch);
603-
604596
static t_seg_details* alloc_and_load_global_route_seg_details(const int global_route_switch,
605597
int* num_seg_details = nullptr);
606598

@@ -838,7 +830,7 @@ void create_rr_graph(const t_graph_type graph_type,
838830
det_routing_arch->R_minW_nmos,
839831
det_routing_arch->R_minW_pmos,
840832
router_opts.base_cost_type,
841-
directs, directs.size(),
833+
directs,
842834
&det_routing_arch->wire_to_rr_ipin_switch,
843835
det_routing_arch->shrink_boundary, /* Shrink to the smallest boundary, no routing wires for empty zone */
844836
det_routing_arch->perimeter_cb, /* Now I/O or any programmable blocks on perimeter can have full cb access (both cbx and cby) */
@@ -4348,7 +4340,7 @@ static void build_unidir_rr_opins(RRGraphBuilder& rr_graph_builder,
43484340
* This data structure supplements the the info in the "directs" data structure
43494341
* TODO: The function that does this parsing in placement is poorly done because it lacks generality on heterogeniety, should replace with this one
43504342
*/
4351-
static t_clb_to_clb_directs* alloc_and_load_clb_to_clb_directs(const std::vector<t_direct_inf>& directs, int delayless_switch) {
4343+
t_clb_to_clb_directs* alloc_and_load_clb_to_clb_directs(const std::vector<t_direct_inf>& directs, int delayless_switch) {
43524344
t_clb_to_clb_directs* clb_to_clb_directs;
43534345
t_physical_tile_type_ptr physical_tile = nullptr;
43544346
t_physical_tile_port tile_port;

vpr/src/route/rr_graph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void rr_graph_externals(const std::vector<t_segment_inf>& segment_inf,
6262
int wire_to_rr_ipin_switch,
6363
enum e_base_cost_type base_cost_type);
6464

65-
t_clb_to_clb_directs* alloc_and_load_clb_to_clb_directs(const t_direct_inf* directs, const int num_directs, int delayless_switch);
65+
t_clb_to_clb_directs* alloc_and_load_clb_to_clb_directs(const std::vector<t_direct_inf>& directs, const int delayless_switch);
6666

6767
std::vector<vtr::Matrix<int>> alloc_and_load_actual_fc(const std::vector<t_physical_tile_type>& types,
6868
const int max_pins,

vpr/src/tileable_rr_graph/tileable_rr_graph_builder.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ void build_tileable_unidir_rr_graph(const std::vector<t_physical_tile_type>& typ
8181
const float R_minW_nmos,
8282
const float R_minW_pmos,
8383
const enum e_base_cost_type& base_cost_type,
84-
const t_direct_inf* directs,
85-
const int& num_directs,
84+
const std::vector<t_direct_inf>& directs,
8685
int* wire_to_rr_ipin_switch,
8786
const bool& shrink_boundary,
8887
const bool& perimeter_cb,
@@ -269,20 +268,18 @@ void build_tileable_unidir_rr_graph(const std::vector<t_physical_tile_type>& typ
269268
***********************************************************************/
270269
/* Create data structure of direct-connections */
271270
t_clb_to_clb_directs* clb_to_clb_directs = NULL;
272-
if (num_directs > 0) {
273-
clb_to_clb_directs = alloc_and_load_clb_to_clb_directs(directs, num_directs, delayless_switch);
271+
if (!directs.empty()) {
272+
clb_to_clb_directs = alloc_and_load_clb_to_clb_directs(directs, delayless_switch);
274273
}
275-
std::vector<t_direct_inf> arch_directs;
276274
std::vector<t_clb_to_clb_directs> clb2clb_directs;
277-
for (int idirect = 0; idirect < num_directs; ++idirect) {
278-
arch_directs.push_back(directs[idirect]);
275+
for (size_t idirect = 0; idirect < directs.size(); ++idirect) {
279276
/* Sanity checks on rr switch id */
280277
VTR_ASSERT(true == device_ctx.rr_graph.valid_switch(RRSwitchId(clb_to_clb_directs[idirect].switch_index)));
281278
clb2clb_directs.push_back(clb_to_clb_directs[idirect]);
282279
}
283280

284281
build_rr_graph_direct_connections(device_ctx.rr_graph, device_ctx.rr_graph_builder, device_ctx.grid, 0,
285-
arch_directs, clb2clb_directs);
282+
directs, clb2clb_directs);
286283

287284
/* Allocate and load routing resource switches, which are derived from the switches from the architecture file,
288285
* based on their fanin in the rr graph. This routine also adjusts the rr nodes to point to these new rr switches */

vpr/src/tileable_rr_graph/tileable_rr_graph_builder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ void build_tileable_unidir_rr_graph(const std::vector<t_physical_tile_type>& typ
2626
const float R_minW_nmos,
2727
const float R_minW_pmos,
2828
const enum e_base_cost_type& base_cost_type,
29-
const t_direct_inf* directs,
30-
const int& num_directs,
29+
const std::vector<t_direct_inf>& directs,
3130
int* wire_to_rr_ipin_switch,
3231
const bool& shrink_boundary,
3332
const bool& perimeter_cb,

0 commit comments

Comments
 (0)