Skip to content

Commit

Permalink
Fixed format
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshgore committed Jan 26, 2025
1 parent 2932fed commit 8125a70
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions openfpga/src/annotation/write_xml_device_rr_gsb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,23 @@ static void write_rr_gsb_ipin_connection_to_xml(std::fstream& fp,
int driver_node_index = -1;

for (size_t side = 0; side < NUM_2D_SIDES; ++side) {
chan_side_manager.set_side(side);
chan_side = chan_side_manager.get_side();
for (PORTS port_direc : {IN_PORT, OUT_PORT}) {
/* For channel node, we do not know the node direction
* But we are pretty sure it is either IN_PORT or OUT_PORT
* So we just try and find what is valid
*/
chan_side_manager.set_side(side);
chan_side = chan_side_manager.get_side();
for (PORTS port_direc : {IN_PORT, OUT_PORT}) {
/* For channel node, we do not know the node direction
* But we are pretty sure it is either IN_PORT or OUT_PORT
* So we just try and find what is valid
*/
driver_node_index =
rr_gsb.get_chan_node_index(chan_side, driver_node);
if (-1 != driver_node_index) {
break;
}
}
}
if (-1 != driver_node_index) {
break;
}
}
}

/* We must have a valide node index */
VTR_ASSERT(-1 != driver_node_index);
Expand Down

0 comments on commit 8125a70

Please sign in to comment.