Skip to content

Commit a5ab5eb

Browse files
committed
fix a typo
1 parent a5106f4 commit a5ab5eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/route/rr_graph_generation/tileable_rr_graph/crr_generator/crr_edge_builder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static t_arch_switch_inf create_crr_switch(const int delay_ps, const std::string
3333
}
3434

3535
static RRSwitchId find_or_create_crr_switch_id(const int delay_ps, const std::string& sw_template_id) {
36-
std::vector<t_arch_switch_inf>& all_sw_inf = g_vpr_ctx.mutable_device().all_sw_inf;
36+
std::map<int, t_arch_switch_inf>& all_sw_inf = g_vpr_ctx.mutable_device().all_sw_inf;
3737
int found_sw_id = -1;
3838
for (int sw_id = 0; sw_id < (int)all_sw_inf.size(); sw_id++) {
3939
if (all_sw_inf[sw_id].template_id == sw_template_id) {
@@ -46,7 +46,7 @@ static RRSwitchId find_or_create_crr_switch_id(const int delay_ps, const std::st
4646
t_arch_switch_inf new_arch_switch_inf = create_crr_switch(delay_ps, sw_template_id);
4747
found_sw_id = (int)all_sw_inf.size();
4848
all_sw_inf.insert(std::make_pair(found_sw_id, new_arch_switch_inf));
49-
VTR_LOG("Created new CRR switch: %s with ID: %d\n", switch_name.c_str(), found_sw_id);
49+
VTR_LOG("Created new CRR switch: delay=%d ps, template id=%s\n", delay_ps, sw_template_id.c_str());
5050
}
5151
return RRSwitchId(found_sw_id);
5252
}

0 commit comments

Comments
 (0)