Skip to content

Commit 3b715da

Browse files
committed
applies clang format
1 parent 347fcbe commit 3b715da

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/interfaces/cxs/cxs_tlm.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ struct cxs_transmitter : public sc_core::sc_module,
141141

142142
cci::cci_param<sc_core::sc_time> clock_period{"clock_period", sc_core::SC_ZERO_TIME, "clock period of the CXS transmitter"};
143143

144-
scc::cci_param_restricted<unsigned> burst_len{"burst_len", 1, scc::min_restriction(1u), "minimum amount of credits to start transmitting flits, shall be larger than 0"};
144+
scc::cci_param_restricted<unsigned> burst_len{"burst_len", 1, scc::min_restriction(1u),
145+
"minimum amount of credits to start transmitting flits, shall be larger than 0"};
145146

146147
cxs_transmitter(sc_core::sc_module_name const& nm)
147148
: sc_core::sc_module(nm) {
@@ -152,7 +153,7 @@ struct cxs_transmitter : public sc_core::sc_module,
152153
SC_METHOD(clock);
153154
sensitive << clk_i.pos();
154155
SC_METHOD(handle_received_credits);
155-
sensitive<<received_credits.event();
156+
sensitive << received_credits.event();
156157
dont_initialize();
157158
}
158159

@@ -199,7 +200,7 @@ struct cxs_transmitter : public sc_core::sc_module,
199200
throw std::runtime_error("illegal request in backward path");
200201
}
201202

202-
void handle_received_credits(){
203+
void handle_received_credits() {
203204
while(received_credits.has_next()) {
204205
auto crd = received_credits.get();
205206
available_credits += crd;
@@ -213,7 +214,7 @@ struct cxs_transmitter : public sc_core::sc_module,
213214
pending_pkt = nullptr;
214215
return;
215216
}
216-
if((!pending_pkt && !pkt_peq.has_next()) || // there are no packets to send
217+
if((!pending_pkt && !pkt_peq.has_next()) || // there are no packets to send
217218
(!burst_credits && (available_credits < burst_len.get_value()))) // we do not have enough credits to burst-send flits
218219
return;
219220
auto* ptr = cxs_flit_mm::get().allocate();
@@ -293,7 +294,8 @@ struct cxs_receiver : public sc_core::sc_module,
293294

294295
cci::cci_param<sc_core::sc_time> clock_period{"clock_period", sc_core::SC_ZERO_TIME, "clock period of the CXS receiver"};
295296

296-
scc::cci_param_restricted<unsigned> max_credit{"max_credits", 1, scc::min_restriction(1u), "CXS_MAX_CREDIT property, shall be larger than 0"};
297+
scc::cci_param_restricted<unsigned> max_credit{"max_credits", 1, scc::min_restriction(1u),
298+
"CXS_MAX_CREDIT property, shall be larger than 0"};
297299

298300
cxs_receiver(sc_core::sc_module_name const& nm)
299301
: sc_core::sc_module(nm) {
@@ -305,7 +307,7 @@ struct cxs_receiver : public sc_core::sc_module,
305307
sensitive << clk_i.pos();
306308
dont_initialize();
307309
SC_METHOD(handle_received_credits);
308-
sensitive<<returned_credits.event();
310+
sensitive << returned_credits.event();
309311
dont_initialize();
310312
}
311313

src/sysc/scc/configurer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ struct yaml_config_reader : public config_reader {
502502
broker.set_preset_cci_value(hier_name, cci::cci_value(res.value()));
503503
}
504504
}
505-
} else if (tag.size() && tag[0] == '!') {
505+
} else if(tag.size() && tag[0] == '!') {
506506
auto param_handle = broker.get_param_handle(hier_name);
507507
if(param_handle.is_valid()) {
508508
auto param = param_handle.get_cci_value();

src/sysc/tlm/nw/tlm_network_gp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct tlm_network_payload_base {
6767
explicit tlm_network_payload_base(tlm_base_mm_interface* mm)
6868
: m_extensions(max_num_extensions())
6969
, m_mm(mm)
70-
, m_ref_count(0) {};
70+
, m_ref_count(0){};
7171
/**
7272
* virtual destructor.
7373
*/

0 commit comments

Comments
 (0)