From 8125a707dba53303aeebe5598f89e1a9a76a50eb Mon Sep 17 00:00:00 2001 From: Ganesh Gore Date: Sat, 25 Jan 2025 20:43:31 -0700 Subject: [PATCH] Fixed format --- .../src/annotation/write_xml_device_rr_gsb.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/openfpga/src/annotation/write_xml_device_rr_gsb.cpp b/openfpga/src/annotation/write_xml_device_rr_gsb.cpp index 3a0d56a03..0b1aa8462 100644 --- a/openfpga/src/annotation/write_xml_device_rr_gsb.cpp +++ b/openfpga/src/annotation/write_xml_device_rr_gsb.cpp @@ -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);