Skip to content

Commit

Permalink
Fixed file format
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshgore committed Jan 26, 2025
1 parent c914b95 commit 2932fed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion openfpga/src/annotation/annotate_rr_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,9 @@ static RRGSB build_rr_gsb(const DeviceContext& vpr_device_ctx,

for (size_t side = 0; side < rr_gsb.get_num_sides(); ++side) {
SideManager side_manager(side);
VTR_LOG_DEBUG("RRGSB at (%lu, %lu) has %lu chan nodes, %lu ipin nodes, and %lu opin nodes.\n",
VTR_LOG_DEBUG(
"RRGSB at (%lu, %lu) has %lu chan nodes, %lu ipin nodes, and %lu opin "
"nodes.\n",
rr_gsb.get_x(), rr_gsb.get_y(),
rr_gsb.chan_node_size(side_manager.get_side()),
rr_gsb.ipin_node_size(side_manager.get_side()),
Expand Down
11 changes: 8 additions & 3 deletions openfpga/src/annotation/write_xml_device_rr_gsb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,15 @@ static void write_rr_gsb_ipin_connection_to_xml(std::fstream& fp,
* 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; }
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;}
if (-1 != driver_node_index) {
break;
}
}

/* We must have a valide node index */
Expand Down

0 comments on commit 2932fed

Please sign in to comment.