Skip to content

Commit abe0b4c

Browse files
make format to add new line at EOF
1 parent 41b8821 commit abe0b4c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+62
-62
lines changed

libs/libarchfpga/src/physical_types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,4 @@ const t_physical_tile_port* t_sub_tile::get_port_by_pin(int pin) const {
360360
}
361361

362362
return nullptr;
363-
}
363+
}

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4818,4 +4818,4 @@ static T* get_type_by_name(std::string_view type_name, std::vector<T>& types) {
48184818

48194819
archfpga_throw(__FILE__, __LINE__,
48204820
"Could not find type: %s\n", type_name);
4821-
}
4821+
}

libs/libarchfpga/src/read_xml_arch_file_noc_tag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,4 +684,4 @@ static void process_noc_overrides(pugi::xml_node noc_overrides_tag,
684684
bad_tag(override_tag, loc_data, noc_overrides_tag, {"router", "link"});
685685
}
686686
}
687-
}
687+
}

libs/libarchfpga/src/write_models_bb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ void DeclareModel_bb(FILE* Echo, const t_model* model) {
116116

117117
// endmodule
118118
fprintf(Echo, "endmodule\n\n");
119-
}
119+
}

libs/libarchfpga/test/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#define CATCH_CONFIG_MAIN
2-
#include "catch2/catch_test_macros.hpp"
2+
#include "catch2/catch_test_macros.hpp"

libs/libarchfpga/test/test_read_xml_arch_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,4 @@ TEST_CASE("Verifying mesh topology creation", "[NoC Arch Tests]") {
269269
REQUIRE(vtr::isclose(golden_results_y[expected_router_id], test_noc.router_list[expected_router_id].device_y_position));
270270
}
271271
}
272-
}
272+
}

libs/liblog/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ int main() {
1515

1616
log_print_info("Test complete\n");
1717
return 0;
18-
}
18+
}

odin_ii/src/ast/ast_elaborate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ ast_node_t* find_top_module(ast_t* ast);
3232
int simplify_ast_module(ast_node_t** ast_module, sc_hierarchy* local_ref);
3333
void create_param_table_for_scope(ast_node_t* module_items, sc_hierarchy* local_ref);
3434

35-
#endif
35+
#endif

odin_ii/src/config/read_xml_config_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,4 @@ void read_optimizations(pugi::xml_node a_node, config_t* config, const pugiutil:
321321
}
322322

323323
return;
324-
}
324+
}

odin_ii/src/core/block_memories.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,4 +1470,4 @@ static void free_block_memory(block_memory_t* to_free) {
14701470
vtr::free(to_free->memory_id);
14711471

14721472
vtr::free(to_free);
1473-
}
1473+
}

odin_ii/src/core/odin_memory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,4 @@ void realloc(T** ptr_ref, S _n_bytes) {
138138
}
139139
} // namespace odin
140140

141-
#endif //ODIN_MEMORY_H
141+
#endif //ODIN_MEMORY_H

odin_ii/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ int main(int argc, char** argv) {
4646
netlist_t* odin_netlist = start_odin_ii(argc, argv);
4747
terminate_odin_ii(odin_netlist);
4848
return 0;
49-
}
49+
}

odin_ii/src/netlist/netlist_statistic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,4 +547,4 @@ void compute_statistics(netlist_t* netlist, bool display) {
547547
printf("\n");
548548
}
549549
}
550-
}
550+
}

odin_ii/src/utils/hierarchy_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,4 +332,4 @@ ast_node_t* resolve_hierarchical_name_reference_by_upward_search(sc_hierarchy* l
332332
}
333333

334334
return NULL;
335-
}
335+
}

odin_ii/src/utils/hierarchy_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ sc_hierarchy* copy_sc_hierarchy(sc_hierarchy* to_copy);
6262
void free_sc_hierarchy(sc_hierarchy* to_free);
6363
ast_node_t* resolve_hierarchical_name_reference(sc_hierarchy* local_ref, char* identifier);
6464

65-
#endif
65+
#endif

odin_ii/src/utils/scope_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ void push_scope() {
8080

8181
/* update current scope */
8282
current_scope = scope_stack.back();
83-
}
83+
}

vpr/src/base/partition_region.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ const PartitionRegion& get_device_partition_region() {
111111
VTR_ASSERT_SAFE(layer_low == 0 && layer_high == n_layers - 1);
112112

113113
return device_pr;
114-
}
114+
}

vpr/src/base/setup_noc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ void create_noc_routers(const t_noc_inf& noc_info,
131131
*/
132132
void create_noc_links(const t_noc_inf& noc_info, NocStorage* noc_model);
133133

134-
#endif
134+
#endif

vpr/src/base/user_route_constraints.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ const std::string UserRouteConstraints::get_routing_network_name_by_net_name(std
7272

7373
int UserRouteConstraints::get_num_route_constraints(void) const {
7474
return route_constraints_.size();
75-
}
75+
}

vpr/src/base/user_route_constraints.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,4 @@ class UserRouteConstraints {
153153
*/
154154
std::unordered_map<std::string, RoutingScheme> route_constraints_;
155155
};
156-
#endif /* USER_ROUTE_CONSTRAINTS_H */
156+
#endif /* USER_ROUTE_CONSTRAINTS_H */

vpr/src/draw/draw_noc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,4 @@ void shift_noc_link(noc_link_draw_coords& link_coords, NocLinkShift link_shift_d
243243

244244
#endif
245245

246-
#endif
246+
#endif

vpr/src/draw/gtkcomboboxhelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ gint get_item_index_by_text(gpointer combo_box, const gchar* target_item) {
5858
return result_index;
5959
}
6060

61-
#endif // NO_GRAPHICS
61+
#endif // NO_GRAPHICS

vpr/src/draw/search_bar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ GdkEvent simulate_keypress(char key, GdkWindow* window);
5353
std::string get_search_type(ezgl::application* app);
5454
#endif /* NO_GRAPHICS */
5555

56-
#endif /* SEARCH_BAR_H */
56+
#endif /* SEARCH_BAR_H */

vpr/src/draw/ui_setup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ void show_widget(std::string widgetName, ezgl::application* app);
101101

102102
#endif /* NO_GRAPHICS */
103103

104-
#endif /* UISETUP_H */
104+
#endif /* UISETUP_H */

vpr/src/noc/bfs_routing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ void BFSRouting::generate_route(NocRouterId start_router_id,
129129
// now get the parent of the router we moved to
130130
curr_intermediate_router_parent_link = router_parent_link.find(curr_intermediate_router);
131131
}
132-
}
132+
}

vpr/src/noc/bfs_routing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ class BFSRouting : public NocRouting {
8787
const std::unordered_map<NocRouterId, NocLinkId>& router_parent_link);
8888
};
8989

90-
#endif
90+
#endif

vpr/src/noc/channel_dependency_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,4 @@ bool ChannelDependencyGraph::has_cycles() {
125125

126126
// if no vertex in the graph points to at least one of its ancestors, the graph does not have any cycles
127127
return false;
128-
}
128+
}

vpr/src/noc/noc_data_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ typedef vtr::StrongId<noc_traffic_flow_id_tag, int> NocTrafficFlowId;
2828
struct noc_group_id_tag;
2929
typedef vtr::StrongId<noc_group_id_tag, int> NocGroupId;
3030

31-
#endif
31+
#endif

vpr/src/noc/noc_link.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ class NocLink {
121121
operator NocLinkId() const;
122122
};
123123

124-
#endif
124+
#endif

vpr/src/noc/noc_router.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ ClusterBlockId NocRouter::get_router_block_ref() const {
4747
// setters
4848
void NocRouter::set_router_block_ref(ClusterBlockId router_block_ref_id) {
4949
router_block_ref = router_block_ref_id;
50-
}
50+
}

vpr/src/noc/noc_router.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ class NocRouter {
119119
void set_router_block_ref(ClusterBlockId router_block_ref_id);
120120
};
121121

122-
#endif
122+
#endif

vpr/src/noc/noc_routing_algorithm_creator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ std::unique_ptr<NocRouting> NocRoutingAlgorithmCreator::create_routing_algorithm
2929
}
3030

3131
return noc_routing_algorithm;
32-
}
32+
}

vpr/src/noc/noc_traffic_flows.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,4 +315,4 @@ class NocTrafficFlows {
315315
static constexpr double DEFAULT_MAX_TRAFFIC_FLOW_LATENCY = 1.;
316316
};
317317

318-
#endif
318+
#endif

vpr/src/noc/read_xml_noc_traffic_flows_file.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,4 @@ bool check_that_all_router_blocks_have_an_associated_traffic_flow(NocContext& no
257257
*/
258258
std::vector<ClusterBlockId> get_cluster_blocks_compatible_with_noc_router_tiles(const ClusteringContext& cluster_ctx, t_physical_tile_type_ptr noc_router_tile_type);
259259

260-
#endif
260+
#endif

vpr/src/noc/sat_routing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,4 +670,4 @@ vtr::vector<NocTrafficFlowId, std::vector<NocLinkId>> noc_sat_route(bool minimiz
670670
return {};
671671
}
672672

673-
#endif //ENABLE_NOC_SAT_ROUTING
673+
#endif //ENABLE_NOC_SAT_ROUTING

vpr/src/noc/sat_routing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ struct hash<std::pair<NocTrafficFlowId, NocLinkId>> {
6767
} // namespace std
6868

6969
#endif
70-
#endif
70+
#endif

vpr/src/noc/xy_routing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ bool XYRouting::is_turn_legal(const std::array<std::reference_wrapper<const NocR
8282
}
8383

8484
return true;
85-
}
85+
}

vpr/src/noc/xy_routing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ class XYRouting : public TurnModelRouting {
118118
const std::vector<TurnModelRouting::Direction> no_direction{};
119119
};
120120

121-
#endif
121+
#endif

vpr/src/place/delay_model/PlacementDelayModelCreator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ PlacementDelayModelCreator::create_delay_model(const t_placer_opts& placer_opts,
7777
free_routing_structs();
7878

7979
return place_delay_model;
80-
}
80+
}

vpr/src/place/delay_model/compute_delta_delays_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,4 +963,4 @@ std::vector<int> get_best_classes(enum e_pin_type pintype, t_physical_tile_type_
963963
std::stable_sort(best_classes.begin(), best_classes.end(), cmp_class);
964964

965965
return best_classes;
966-
}
966+
}

vpr/src/place/delay_model/compute_delta_delays_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ bool find_direct_connect_sample_locations(const t_direct_inf* direct,
5353
* with the same number of pins.
5454
*/
5555

56-
std::vector<int> get_best_classes(enum e_pin_type pintype, t_physical_tile_type_ptr type);
56+
std::vector<int> get_best_classes(enum e_pin_type pintype, t_physical_tile_type_ptr type);

vpr/src/place/delay_model/delta_delay_model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ class DeltaDelayModel : public PlaceDelayModel {
4444

4545
/// Indicates whether the router is a two-stage or run-flat
4646
bool is_flat_;
47-
};
47+
};

vpr/src/place/delay_model/override_delay_model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ class OverrideDelayModel : public PlaceDelayModel {
109109
static_assert(sizeof(t_override::to_class) == sizeof(short), "Expect all t_override data members to be shorts");
110110
static_assert(sizeof(t_override::delta_x) == sizeof(short), "Expect all t_override data members to be shorts");
111111
static_assert(sizeof(t_override::delta_y) == sizeof(short), "Expect all t_override data members to be shorts");
112-
};
112+
};

vpr/src/place/delay_model/simple_delay_model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ class SimpleDelayModel : public PlaceDelayModel {
3636
*One might argue that this variability could also occur for dx and dy. However, we are operating under the assumption that the FPGA fabric architecture is regular.
3737
*/
3838
vtr::NdMatrix<float, 5> delays_; // [0..num_physical_type-1][0..num_layers-1][0..num_layers-1][0..max_dx][0..max_dy]
39-
};
39+
};

vpr/src/place/grid_tile_lookup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ class GridTileLookup {
8787
std::vector<int> max_placement_locations;
8888
};
8989

90-
#endif /* VPR_SRC_PLACE_GRID_TILE_LOOKUP_H_ */
90+
#endif /* VPR_SRC_PLACE_GRID_TILE_LOOKUP_H_ */

vpr/src/place/placer_breakpoint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ void stop_placement_and_check_breakpoints(t_pl_blocks_to_be_moved& blocks_affect
1515
e_move_result move_outcome,
1616
double delta_c,
1717
double bb_delta_c,
18-
double timing_delta_c);
18+
double timing_delta_c);

vpr/src/place/timing/PlacerTimingCosts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ void PlacerTimingCosts::invalidate(const double* invalidated_cost) {
123123
}
124124

125125
VTR_ASSERT_SAFE_MSG(std::isnan(connection_costs_[0]), "Invalidating any connection should have invalidated the root");
126-
}
126+
}

vpr/src/route/rr_graph_indexed_data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ void load_rr_index_segments(const int num_segment) {
1919
index = CHANX_COST_INDEX_START + num_segment + iseg;
2020
device_ctx.rr_indexed_data[RRIndexedDataId(index)].seg_index = iseg;
2121
}
22-
}
22+
}

vpr/src/timing/NetPinTimingInvalidator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,4 @@ inline std::unique_ptr<NetPinTimingInvalidator> make_net_pin_timing_invalidator(
191191
return std::make_unique<IncrNetPinTimingInvalidator>(net_list, clb_atom_pin_lookup, atom_nlist,
192192
atom_lookup, timing_info, is_flat);
193193
}
194-
}
194+
}

vpr/test/test_bfs_routing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ TEST_CASE("test_route_flow", "[vpr_noc_bfs_routing]") {
139139
}
140140
}
141141

142-
} // namespace
142+
} // namespace

vpr/test/test_clustered_netlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,4 @@ TEST_CASE("test_find_block_with_matching_name", "[vpr_clustered_netlist]") {
146146
REQUIRE((size_t)(block_id_from_name.find("router:noc_router_four|flit_out_two[0]~reg0")->second) == (size_t)test_router_id);
147147
}
148148
}
149-
} // namespace
149+
} // namespace

vpr/test/test_compressed_grid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,4 @@ TEST_CASE("test_compressed_grid", "[vpr_compressed_grid]") {
324324
logical_block_types.clear();
325325
}
326326

327-
} // namespace
327+
} // namespace

vpr/test/test_noc_storage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,4 +457,4 @@ TEST_CASE("test_generate_router_key_from_grid_location", "[vpr_noc]") {
457457
}
458458
}
459459

460-
} // namespace
460+
} // namespace

vpr/test/test_noc_traffic_flows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ TEST_CASE("test_adding_traffic_flows", "[vpr_noc_traffic_flows]") {
133133
REQUIRE(traffic_flow_storage.get_traffic_flows_associated_to_router_block(invalid_block).empty());
134134
}
135135
}
136-
} // namespace
136+
} // namespace

vpr/test/test_odd_even_routing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,4 @@ TEST_CASE("test_route_flow", "[vpr_noc_odd_even_routing]") {
263263
}
264264
}
265265

266-
} // namespace
266+
} // namespace

vpr/test/test_read_xml_noc_traffic_flows_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,4 +553,4 @@ TEST_CASE("test_get_cluster_blocks_compatible_with_noc_router_tiles", "[vpr_noc_
553553
free_clustered_netlist();
554554
}
555555
}
556-
} // namespace
556+
} // namespace

vpr/test/test_server_taskresolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ TEST_CASE("test_server_taskresolver_cmdSpamAndOverrideOptions", "[vpr]") {
112112
REQUIRE(task1->options() == "");
113113
}
114114

115-
#endif /* NO_SERVER */
115+
#endif /* NO_SERVER */

0 commit comments

Comments
 (0)