Skip to content

Commit d8b234b

Browse files
committed
make format
1 parent b479b21 commit d8b234b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

vpr/src/route/rr_graph.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,21 +1368,19 @@ static void build_rr_graph(const t_graph_type graph_type,
13681368
}
13691369

13701370
/*Update rr_nodes ptc_twist_incr number if we are creating tileable graph*/
1371-
if(graph_type == GRAPH_UNIDIR_TILEABLE){
1371+
if (graph_type == GRAPH_UNIDIR_TILEABLE) {
13721372
device_ctx.rr_graph_builder.resize_ptc_twist_incr(num_rr_nodes);
1373-
for(int rr_node_id = 0; rr_node_id < num_rr_nodes; rr_node_id++){
1373+
for (int rr_node_id = 0; rr_node_id < num_rr_nodes; rr_node_id++) {
13741374
auto node_type = rr_graph.node_type(RRNodeId(rr_node_id));
13751375
auto node_dir = rr_graph.node_direction(RRNodeId(rr_node_id));
1376-
if ( node_type != CHANX && node_type != CHANY ) { //SRC/SINK/IPIN/OPIN
1377-
device_ctx.rr_graph_builder.set_node_ptc_twist_incr(RRNodeId(rr_node_id),0);
1378-
}
1379-
else{
1376+
if (node_type != CHANX && node_type != CHANY) { //SRC/SINK/IPIN/OPIN
1377+
device_ctx.rr_graph_builder.set_node_ptc_twist_incr(RRNodeId(rr_node_id), 0);
1378+
} else {
13801379
//The current ptc twist increment number in UNDIR TILEABLE RRGraph is 2 and -2
13811380
//The assumption should be synced up with openFPGA branch
1382-
if(node_dir == Direction::INC){
1381+
if (node_dir == Direction::INC) {
13831382
device_ctx.rr_graph_builder.set_node_ptc_twist_incr(RRNodeId(rr_node_id), 2);
1384-
}
1385-
else{
1383+
} else {
13861384
device_ctx.rr_graph_builder.set_node_ptc_twist_incr(RRNodeId(rr_node_id), -2);
13871385
}
13881386
}

0 commit comments

Comments
 (0)