Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
duck2 committed Oct 28, 2024
1 parent 680b373 commit 85b5247
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion openfpga/src/annotation/annotate_rr_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ static void annotate_rr_switch_circuit_models(
vpr_device_ctx.rr_graph.rr_switch()[RRSwitchId(rr_switch_id)].name);

/* Skip flat router-generated internal switches */
if(switch_name.rfind(VPR_INTERNAL_SWITCH_NAME, 0) == 0) {
if (switch_name.rfind(VPR_INTERNAL_SWITCH_NAME, 0) == 0) {
continue;
}

Expand Down
6 changes: 3 additions & 3 deletions openfpga/src/annotation/openfpga_annotate_routing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ void annotate_rr_node_previous_nodes(
}

auto& tree = get_route_tree_from_cluster_net_id(net_id);
if(!tree) {
if (!tree) {
continue;
}
for (auto& rt_node: tree->all_nodes()) {

for (auto& rt_node : tree->all_nodes()) {
RRNodeId rr_node = rt_node.inode;
auto parent = rt_node.parent();
vpr_routing_annotation.set_rr_node_prev_node(
Expand Down
2 changes: 1 addition & 1 deletion openfpga/src/mux_lib/mux_library_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void build_routing_arch_mux_library(
vpr_device_annotation.rr_switch_circuit_model(driver_switches[0]);

/* Skip flat router-generated internal switches (not relevant) */
std::string switch_name = rr_graph.rr_switch_inf(driver_switches[0]).name;
auto switch_name = rr_graph.rr_switch_inf(driver_switches[0]).name;
if (switch_name.rfind(VPR_INTERNAL_SWITCH_NAME, 0) == 0) {
continue;
}
Expand Down

0 comments on commit 85b5247

Please sign in to comment.