File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -1368,21 +1368,19 @@ static void build_rr_graph(const t_graph_type graph_type,
1368
1368
}
1369
1369
1370
1370
/* 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) {
1372
1372
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++) {
1374
1374
auto node_type = rr_graph.node_type (RRNodeId (rr_node_id));
1375
1375
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 {
1380
1379
// The current ptc twist increment number in UNDIR TILEABLE RRGraph is 2 and -2
1381
1380
// The assumption should be synced up with openFPGA branch
1382
- if (node_dir == Direction::INC){
1381
+ if (node_dir == Direction::INC) {
1383
1382
device_ctx.rr_graph_builder .set_node_ptc_twist_incr (RRNodeId (rr_node_id), 2 );
1384
- }
1385
- else {
1383
+ } else {
1386
1384
device_ctx.rr_graph_builder .set_node_ptc_twist_incr (RRNodeId (rr_node_id), -2 );
1387
1385
}
1388
1386
}
You can’t perform that action at this time.
0 commit comments