Skip to content

Commit 4439184

Browse files
make format
1 parent 81224e3 commit 4439184

File tree

6 files changed

+14
-19
lines changed

6 files changed

+14
-19
lines changed

vpr/src/noc/noc_traffic_flows.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ struct t_noc_traffic_flow {
7474
, sink_router_cluster_id(sink_router_id)
7575
, traffic_flow_bandwidth(flow_bandwidth)
7676
, max_traffic_flow_latency(max_flow_latency)
77-
, traffic_flow_priority(flow_priority)
78-
{}
77+
, traffic_flow_priority(flow_priority) {}
7978
};
8079

8180
class NocTrafficFlows {

vpr/src/pack/pack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ bool try_pack(t_packer_opts* packer_opts,
192192
VTR_LOG("Floorplan regions are overfull: trying to pack again with more attraction groups exploration. \n");
193193
attraction_groups.create_att_groups_for_overfull_regions();
194194
VTR_LOG("Pack iteration is %d\n", pack_iteration);
195-
} else if (pack_iteration == 3) {
195+
} else if (pack_iteration == 3) {
196196
attraction_groups.create_att_groups_for_all_regions();
197197
VTR_LOG("Floorplan regions are overfull: trying to pack again with more attraction groups exploration. \n");
198198
VTR_LOG("Pack iteration is %d\n", pack_iteration);
199-
} else if (pack_iteration == 4) {
199+
} else if (pack_iteration == 4) {
200200
attraction_groups.create_att_groups_for_all_regions();
201201
VTR_LOG("Floorplan regions are overfull: trying to pack again with more attraction groups exploration and higher target pin utilization. \n");
202202
VTR_LOG("Pack iteration is %d\n", pack_iteration);

vpr/src/place/initial_noc_placement.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static void place_constrained_noc_router(ClusterBlockId router_blk_id);
3232
* NoC routers.
3333
* @param seed Used for shuffling NoC routers.
3434
*/
35-
static void place_noc_routers_randomly (std::vector<ClusterBlockId>& unfixed_routers, int seed);
35+
static void place_noc_routers_randomly(std::vector<ClusterBlockId>& unfixed_routers, int seed);
3636

3737
/**
3838
* @brief Runs a simulated annealing optimizer for NoC routers.
@@ -58,8 +58,7 @@ static bool accept_noc_swap(double delta_cost, double prob) {
5858
}
5959
}
6060

61-
static void place_constrained_noc_router(ClusterBlockId router_blk_id)
62-
{
61+
static void place_constrained_noc_router(ClusterBlockId router_blk_id) {
6362
auto& cluster_ctx = g_vpr_ctx.clustering();
6463
const auto& floorplanning_ctx = g_vpr_ctx.floorplanning();
6564

@@ -87,8 +86,7 @@ static void place_constrained_noc_router(ClusterBlockId router_blk_id)
8786
}
8887
}
8988

90-
static void place_noc_routers_randomly (std::vector<ClusterBlockId>& unfixed_routers, int seed)
91-
{
89+
static void place_noc_routers_randomly(std::vector<ClusterBlockId>& unfixed_routers, int seed) {
9290
auto& place_ctx = g_vpr_ctx.placement();
9391
auto& noc_ctx = g_vpr_ctx.noc();
9492
auto& cluster_ctx = g_vpr_ctx.clustering();
@@ -153,8 +151,7 @@ static void place_noc_routers_randomly (std::vector<ClusterBlockId>& unfixed_rou
153151
} // end for of random router placement
154152
}
155153

156-
static void noc_routers_anneal(const t_noc_opts& noc_opts)
157-
{
154+
static void noc_routers_anneal(const t_noc_opts& noc_opts) {
158155
auto& noc_ctx = g_vpr_ctx.noc();
159156

160157
// Only NoC related costs are considered
@@ -267,7 +264,7 @@ void initial_noc_placement(const t_noc_opts& noc_opts, int seed) {
267264
}
268265

269266
// Place unconstrained NoC routers randomly
270-
place_noc_routers_randomly(unfixed_routers,seed);
267+
place_noc_routers_randomly(unfixed_routers, seed);
271268

272269
// populate internal data structures to maintain route, bandwidth usage, and latencies
273270
initial_noc_routing();

vpr/src/place/initial_placement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ static bool place_macro(int macros_max_num_tries, const t_pl_macro& pl_macro, en
821821
//If blk_types_empty_locs_in_grid is not NULL, means that initial placement has been failed in first iteration for this block type
822822
//We need to place densely in second iteration to be able to find a legal initial placement solution
823823
if (blk_types_empty_locs_in_grid != nullptr && !blk_types_empty_locs_in_grid->empty()) {
824-
VTR_LOGV_DEBUG(g_vpr_ctx.placement().f_placer_debug, "\t\t\tTry dense placement\n");
824+
VTR_LOGV_DEBUG(g_vpr_ctx.placement().f_placer_debug, "\t\t\tTry dense placement\n");
825825
macro_placed = try_dense_placement(pl_macro, pr, block_type, pad_loc_type, blk_types_empty_locs_in_grid);
826826
}
827827

vpr/src/place/move_utils.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,8 +1031,7 @@ void compressed_grid_to_loc(t_logical_block_type_ptr blk_type,
10311031
to_loc = t_pl_loc(grid_loc.x, grid_loc.y, sub_tile, grid_loc.layer_num);
10321032
}
10331033

1034-
bool has_empty_compatible_subtile(t_logical_block_type_ptr type, const t_physical_tile_loc& to_loc)
1035-
{
1034+
bool has_empty_compatible_subtile(t_logical_block_type_ptr type, const t_physical_tile_loc& to_loc) {
10361035
auto& device_ctx = g_vpr_ctx.device();
10371036
auto& place_ctx = g_vpr_ctx.placement();
10381037

@@ -1142,7 +1141,7 @@ bool find_compatible_compressed_loc_in_range(t_logical_block_type_ptr type,
11421141
VTR_ASSERT(to_loc.y <= search_range.ymax);
11431142

11441143
if (from_loc.x == to_loc.x && from_loc.y == to_loc.y && from_loc.layer_num == to_layer_num) {
1145-
continue; //Same from/to location -- try again for new y-position
1144+
continue; //Same from/to location -- try again for new y-position
11461145
} else if (search_for_empty) { // Check if the location has at least one empty sub-tile
11471146
legal = has_empty_compatible_subtile(type, to_loc);
11481147
} else {

vpr/src/place/noc_place_checkpoint.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
*/
2727
class NoCPlacementCheckpoint {
2828
public:
29-
/**
30-
* @brief Default constructor initializes private member variables.
31-
*/
29+
/**
30+
* @brief Default constructor initializes private member variables.
31+
*/
3232
NoCPlacementCheckpoint();
3333
NoCPlacementCheckpoint(const NoCPlacementCheckpoint& other) = delete;
3434
NoCPlacementCheckpoint& operator=(const NoCPlacementCheckpoint& other) = delete;

0 commit comments

Comments
 (0)