Skip to content

Commit deac4fa

Browse files
make format
1 parent 803cd32 commit deac4fa

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

vpr/src/draw/draw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ void init_draw_coords(float clb_width, const BlkLocRegistry& blk_loc_registry) {
509509

510510
// Load coordinates of sub-blocks inside the clbs
511511
draw_internal_init_blk();
512-
512+
513513
#else
514514
(void)clb_width;
515515
(void)blk_loc_registry;

vpr/src/draw/draw_rr_edges.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void draw_chany_to_chany_edge(RRNodeId from_node, RRNodeId to_node, RRSwitchId r
5858
if (rr_graph.node_direction(to_node) == Direction::INC) { // INC wire starts at bottom edge
5959
if (rr_graph.node_direction(from_node) == Direction::DEC) {
6060
y2 = to_chan.bottom();
61-
y1 = draw_coords->tile_y[to_ylow] + 0.1 * draw_coords->get_tile_height() ;
61+
y1 = draw_coords->tile_y[to_ylow] + 0.1 * draw_coords->get_tile_height();
6262
} else {
6363
VTR_ASSERT_SAFE(rr_graph.node_direction(from_node) == Direction::INC);
6464
y2 = to_chan.bottom();

vpr/src/route/rr_graph_generation/clb2clb_directs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ std::vector<t_clb_to_clb_directs> alloc_and_load_clb_to_clb_directs(const std::v
3434

3535
t_physical_tile_port tile_port = find_tile_port_by_name(physical_tile, port_name);
3636
/* Find the sub tile indices */
37-
clb_to_clb_directs[i].from_sub_tiles = find_sub_tile_indices_by_port_name(physical_tile, port_name);
37+
clb_to_clb_directs[i].from_sub_tiles = find_sub_tile_indices_by_port_name(physical_tile, port_name);
3838
if (clb_to_clb_directs[i].from_sub_tiles.empty()) {
3939
VPR_THROW(VPR_ERROR_ARCH, "Unable to find sub tile under tile '%s' which contains the port %s.\n", tile_name.c_str(), port_name.data());
4040
}

vpr/src/route/rr_graph_generation/rr_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3094,7 +3094,7 @@ static int get_opin_direct_connections(RRGraphBuilder& rr_graph_builder,
30943094
auto [z, relative_opin] = get_capacity_location_from_physical_pin(curr_type, opin);
30953095
VTR_ASSERT(z >= 0 && z < curr_type->capacity);
30963096
const int num_directs = directs.size();
3097-
3097+
30983098
// Iterate through all direct connections
30993099
for (int i = 0; i < num_directs; i++) {
31003100
// Find matching direct clb-to-clb connections with the same type as current grid location

vpr/src/route/rr_graph_generation/tileable_rr_graph/tileable_rr_graph_gsb.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,14 +1756,14 @@ void build_direct_connections_for_one_gsb(const RRGraphView& rr_graph,
17561756
*/
17571757
std::vector<e_side> opin_grid_side = find_grid_pin_sides(grids, layer, from_grid_coordinate.x() + grid_type->pin_width_offset[opin], from_grid_coordinate.y() + grid_type->pin_height_offset[opin], opin);
17581758
if (1 != opin_grid_side.size()) {
1759-
VPR_FATAL_ERROR(VPR_ERROR_ARCH, "[Arch LINE %d] From pin (index=%d) of direct connection '%s' does not exist on any side of the programmable block '%s'.\n", directs[i].line, opin, directs[i].from_pin.c_str());
1759+
VPR_FATAL_ERROR(VPR_ERROR_ARCH, "[Arch LINE %d] From pin (index=%d) of direct connection '%s' does not exist on any side of the programmable block '%s'.\n", directs[i].line, opin, directs[i].from_pin.c_str());
17601760
}
17611761

17621762
/* directs[i].sub_tile_offset is added to from_capacity(z) to get the target_capacity */
17631763
int to_subtile_cap = z + directs[i].sub_tile_offset;
17641764
/* If the destination subtile is out of range, there is no qualified IPINs */
17651765
if (to_subtile_cap < 0 || to_subtile_cap >= to_grid_type->capacity) {
1766-
continue;
1766+
continue;
17671767
}
17681768
/* Iterate over all sub_tiles to get the sub_tile which the target_cap belongs to. */
17691769
const t_sub_tile* to_sub_tile = nullptr;
@@ -1780,7 +1780,7 @@ void build_direct_connections_for_one_gsb(const RRGraphView& rr_graph,
17801780
int ipin = get_physical_pin_from_capacity_location(to_grid_type, relative_ipin, to_subtile_cap);
17811781
std::vector<e_side> ipin_grid_side = find_grid_pin_sides(grids, layer, to_grid_coordinate.x() + to_grid_type->pin_width_offset[ipin], to_grid_coordinate.y() + to_grid_type->pin_height_offset[ipin], ipin);
17821782
if (1 != ipin_grid_side.size()) {
1783-
VPR_FATAL_ERROR(VPR_ERROR_ARCH, "[Arch LINE %d] To pin (index=%d) of direct connection '%s' does not exist on any side of the programmable block '%s'.\n", directs[i].line, relative_ipin, directs[i].to_pin.c_str());
1783+
VPR_FATAL_ERROR(VPR_ERROR_ARCH, "[Arch LINE %d] To pin (index=%d) of direct connection '%s' does not exist on any side of the programmable block '%s'.\n", directs[i].line, relative_ipin, directs[i].to_pin.c_str());
17841784
}
17851785

17861786
RRNodeId opin_node_id = rr_graph.node_lookup().find_node(layer,
@@ -1794,10 +1794,10 @@ void build_direct_connections_for_one_gsb(const RRGraphView& rr_graph,
17941794

17951795
/* add edges to the opin_node */
17961796
if (!opin_node_id) {
1797-
VTR_ASSERT(opin_node_id);
1797+
VTR_ASSERT(opin_node_id);
17981798
}
17991799
if (!ipin_node_id) {
1800-
VTR_ASSERT(opin_node_id);
1800+
VTR_ASSERT(opin_node_id);
18011801
}
18021802
rr_graph_builder.create_edge_in_cache(opin_node_id, ipin_node_id, RRSwitchId(clb_to_clb_directs[i].switch_index), false);
18031803
}

0 commit comments

Comments
 (0)