Skip to content

Commit 4110acd

Browse files
make format
1 parent df627ce commit 4110acd

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

libs/libarchfpga/src/physical_types.cpp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@ bool t_rr_switch_inf::configurable() const {
7272
}
7373

7474
bool t_rr_switch_inf::operator==(const t_rr_switch_inf& other) const {
75-
return R == other.R &&
76-
Cin == other.Cin &&
77-
Cout == other.Cout &&
78-
Cinternal == other.Cinternal &&
79-
Tdel == other.Tdel &&
80-
mux_trans_size == other.mux_trans_size &&
81-
buf_size == other.buf_size &&
82-
power_buffer_type == other.power_buffer_type &&
83-
power_buffer_size == other.power_buffer_size &&
84-
intra_tile == other.intra_tile &&
85-
type() == other.type();
75+
return R == other.R
76+
&& Cin == other.Cin
77+
&& Cout == other.Cout
78+
&& Cinternal == other.Cinternal
79+
&& Tdel == other.Tdel
80+
&& mux_trans_size == other.mux_trans_size
81+
&& buf_size == other.buf_size
82+
&& power_buffer_type == other.power_buffer_type
83+
&& power_buffer_size == other.power_buffer_size
84+
&& intra_tile == other.intra_tile
85+
&& type() == other.type();
8686
}
8787

8888
std::size_t t_rr_switch_inf::Hasher::operator()(const t_rr_switch_inf& s) const {
@@ -111,7 +111,6 @@ void t_rr_switch_inf::set_type(SwitchType type_val) {
111111
type_ = type_val;
112112
}
113113

114-
115114
static bool switch_type_is_buffered(SwitchType type) {
116115
//Muxes and Tristates isolate their input and output into
117116
//separate DC connected sub-circuits

vpr/test/test_vpr.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,18 +236,18 @@ TEST_CASE("read_rr_edge_override", "[vpr]") {
236236

237237
const std::string RR_GRAPH_NAME = "test_read_rr_edge_override";
238238
const std::string RR_EDGE_OVERRIDE_FILENAME = "test_read_rr_edge_override.txt";
239-
const std::array<std::string, 2> file_extensions {".xml", ".bin"};
239+
const std::array<std::string, 2> file_extensions{".xml", ".bin"};
240240

241241
// We test both xml and binary file formats
242242
for (const std::string& file_extension : file_extensions) {
243-
std::string rr_graph_filename = RR_GRAPH_NAME + file_extension ;
244-
std::string overridden_rr_graph_filename = RR_GRAPH_NAME + "_overridden" + file_extension ;
243+
std::string rr_graph_filename = RR_GRAPH_NAME + file_extension;
244+
std::string overridden_rr_graph_filename = RR_GRAPH_NAME + "_overridden" + file_extension;
245245

246246
RRNodeId src_inode = RRNodeId::INVALID();
247247
RRNodeId sink_inode = RRNodeId::INVALID();
248248
short switch_id = -1;
249249

250-
{ // Generate an RR graph and write it out
250+
{ // Generate an RR graph and write it out
251251
t_vpr_setup vpr_setup;
252252
t_arch arch;
253253
t_options options;
@@ -299,7 +299,7 @@ TEST_CASE("read_rr_edge_override", "[vpr]") {
299299
REQUIRE(sink_inode.is_valid());
300300
REQUIRE(switch_id != -1);
301301

302-
{ // Override edge attributes
302+
{ // Override edge attributes
303303
t_vpr_setup vpr_setup;
304304
t_arch arch;
305305
t_options options;

0 commit comments

Comments
 (0)