Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e4431f3

Browse files
committedAug 8, 2024
rename is_rampped to switches_remapped
1 parent f66b4bb commit e4431f3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed
 

‎vpr/src/route/rr_graph.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static void connect_src_sink_to_pins(RRGraphBuilder& rr_graph_builder,
272272
t_rr_edge_info_set& rr_edges_to_create,
273273
const int delayless_switch,
274274
t_physical_tile_type_ptr physical_type_ptr,
275-
bool is_remapped);
275+
bool switches_remapped);
276276

277277
static void alloc_and_load_tile_rr_graph(RRGraphBuilder& rr_graph_builder,
278278
std::map<int, t_arch_switch_inf>& arch_sw_inf_map,
@@ -381,7 +381,7 @@ static void add_pb_edges(RRGraphBuilder& rr_graph_builder,
381381
int layer,
382382
int i,
383383
int j,
384-
bool is_remapped);
384+
bool switches_remapped);
385385

386386
/**
387387
* Edges going in/out of collapse nodes are not added by the normal routine. This function add those edges
@@ -2039,7 +2039,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
20392039
*Fc_clipped = false;
20402040

20412041
/* This function is called to build the general routing graph resoruces. Thus, the edges are not remapped yet.*/
2042-
bool is_remapped = false;
2042+
bool switches_remapped = false;
20432043

20442044
int num_edges = 0;
20452045
/* Connection SINKS and SOURCES to their pins - Initializing IPINs/OPINs. */
@@ -2074,7 +2074,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
20742074
rr_edges_to_create,
20752075
delayless_switch,
20762076
physical_tile,
2077-
is_remapped);
2077+
switches_remapped);
20782078

20792079
//Create the actual SOURCE->OPIN, IPIN->SINK edges
20802080
uniquify_edges(rr_edges_to_create);
@@ -2477,7 +2477,7 @@ static void connect_src_sink_to_pins(RRGraphBuilder& rr_graph_builder,
24772477
t_rr_edge_info_set& rr_edges_to_create,
24782478
const int delayless_switch,
24792479
t_physical_tile_type_ptr physical_type_ptr,
2480-
bool is_remapped) {
2480+
bool switches_remapped) {
24812481
for (auto class_num : class_num_vec) {
24822482
const auto& pin_list = get_pin_list_from_class_physical_num(physical_type_ptr, class_num);
24832483
auto class_type = get_class_type_from_class_physical_num(physical_type_ptr, class_num);
@@ -2497,11 +2497,11 @@ static void connect_src_sink_to_pins(RRGraphBuilder& rr_graph_builder,
24972497
auto pin_type = get_pin_type_from_pin_physical_num(physical_type_ptr, pin_num);
24982498
if (class_type == DRIVER) {
24992499
VTR_ASSERT(pin_type == DRIVER);
2500-
rr_edges_to_create.emplace_back(class_rr_node_id, pin_rr_node_id, delayless_switch, is_remapped);
2500+
rr_edges_to_create.emplace_back(class_rr_node_id, pin_rr_node_id, delayless_switch, switches_remapped);
25012501
} else {
25022502
VTR_ASSERT(class_type == RECEIVER);
25032503
VTR_ASSERT(pin_type == RECEIVER);
2504-
rr_edges_to_create.emplace_back(pin_rr_node_id, class_rr_node_id, delayless_switch, is_remapped);
2504+
rr_edges_to_create.emplace_back(pin_rr_node_id, class_rr_node_id, delayless_switch, switches_remapped);
25052505
}
25062506
}
25072507
}
@@ -2745,7 +2745,7 @@ static void add_pb_edges(RRGraphBuilder& rr_graph_builder,
27452745
int layer,
27462746
int i,
27472747
int j,
2748-
bool is_remapped) {
2748+
bool switches_remapped) {
27492749
auto pin_num_range = get_pb_pins(physical_type,
27502750
sub_tile,
27512751
logical_block,
@@ -2799,18 +2799,18 @@ static void add_pb_edges(RRGraphBuilder& rr_graph_builder,
27992799
pin_physical_num,
28002800
conn_pin_physical_num);
28012801

2802-
if (is_remapped) {
2802+
if (switches_remapped) {
28032803
auto& all_sw_inf = g_vpr_ctx.mutable_device().all_sw_inf;
28042804
float delay = g_vpr_ctx.device().all_sw_inf.at(sw_idx).Tdel();
28052805
bool is_new_sw;
28062806
std::tie(is_new_sw, sw_idx) = find_create_intra_cluster_sw(rr_graph_builder,
28072807
all_sw_inf,
28082808
R_minW_nmos,
28092809
R_minW_pmos,
2810-
is_remapped,
2810+
switches_remapped,
28112811
delay);
28122812
}
2813-
rr_edges_to_create.emplace_back(parent_pin_node_id, conn_pin_node_id, sw_idx, is_remapped);
2813+
rr_edges_to_create.emplace_back(parent_pin_node_id, conn_pin_node_id, sw_idx, switches_remapped);
28142814
}
28152815
}
28162816
}

0 commit comments

Comments
 (0)
Please sign in to comment.