applies clang-format
This commit is contained in:
parent
a0bd767bc9
commit
f8f1f2f54c
2
scc
2
scc
@ -1 +1 @@
|
|||||||
Subproject commit eadb9285757d639ce1acd854551c115ef84fc903
|
Subproject commit 5046e6e54f4dc17e9673c4d5049c55632c926fea
|
@ -53,9 +53,7 @@ template <unsigned WIDTH, typename STATE> unsigned run_scenario(STATE& state) {
|
|||||||
return cycles;
|
return cycles;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename STATE>
|
template <typename STATE> unsigned run_scenario(int width, STATE& state) {
|
||||||
unsigned run_scenario(int width, STATE &state)
|
|
||||||
{
|
|
||||||
switch(width) {
|
switch(width) {
|
||||||
case 8:
|
case 8:
|
||||||
case 256:
|
case 256:
|
||||||
@ -79,7 +77,6 @@ TEST_CASE("single-packet", "[CXS][tlm-level]") {
|
|||||||
unsigned resp_cnt{0};
|
unsigned resp_cnt{0};
|
||||||
} state;
|
} state;
|
||||||
|
|
||||||
|
|
||||||
state.packet_sizes.assign({4, 8, 16, 32, 64, 128, 256, 1024});
|
state.packet_sizes.assign({4, 8, 16, 32, 64, 128, 256, 1024});
|
||||||
for(auto width = 8; width < 11; ++width) {
|
for(auto width = 8; width < 11; ++width) {
|
||||||
state.resp_cnt = 0;
|
state.resp_cnt = 0;
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
#include <scc/observer.h>
|
#include <scc/observer.h>
|
||||||
#include <scc/sc_variable.h>
|
#include <scc/sc_variable.h>
|
||||||
#include <scc/tracer.h>
|
#include <scc/tracer.h>
|
||||||
#include <tlm/nw/initiator_mixin.h>
|
|
||||||
#include <tlm/nw/target_mixin.h>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <systemc>
|
#include <systemc>
|
||||||
|
#include <tlm/nw/initiator_mixin.h>
|
||||||
|
#include <tlm/nw/target_mixin.h>
|
||||||
|
|
||||||
using namespace sc_core;
|
using namespace sc_core;
|
||||||
using namespace sc_dt;
|
using namespace sc_dt;
|
||||||
@ -18,8 +18,7 @@ using namespace std;
|
|||||||
using namespace cxs;
|
using namespace cxs;
|
||||||
|
|
||||||
const char* sc_gen_unique_name(const char*, bool preserve_first);
|
const char* sc_gen_unique_name(const char*, bool preserve_first);
|
||||||
template<unsigned PHIT_WIDTH>
|
template <unsigned PHIT_WIDTH> struct testbench : public sc_core::sc_module {
|
||||||
struct testbench : public sc_core::sc_module {
|
|
||||||
|
|
||||||
using transaction_type = cxs_packet_types::tlm_payload_type;
|
using transaction_type = cxs_packet_types::tlm_payload_type;
|
||||||
using phase_type = cxs_packet_types::tlm_phase_type;
|
using phase_type = cxs_packet_types::tlm_phase_type;
|
||||||
@ -37,12 +36,10 @@ struct testbench : public sc_core::sc_module {
|
|||||||
|
|
||||||
testbench(sc_core::sc_module_name const& nm)
|
testbench(sc_core::sc_module_name const& nm)
|
||||||
: sc_module(nm) {
|
: sc_module(nm) {
|
||||||
isck.register_nb_transport_bw([this](transaction_type& trans, phase_type& phase, sc_core::sc_time& t) {
|
isck.register_nb_transport_bw(
|
||||||
return this->nb_transport_fw(trans, phase, t);
|
[this](transaction_type& trans, phase_type& phase, sc_core::sc_time& t) { return this->nb_transport_fw(trans, phase, t); });
|
||||||
});
|
tsck.register_nb_transport_fw(
|
||||||
tsck.register_nb_transport_fw([this](transaction_type& trans, phase_type& phase, sc_core::sc_time& t) {
|
[this](transaction_type& trans, phase_type& phase, sc_core::sc_time& t) { return this->nb_transport_fw(trans, phase, t); });
|
||||||
return this->nb_transport_fw(trans, phase, t);
|
|
||||||
});
|
|
||||||
isck(tx.tsck);
|
isck(tx.tsck);
|
||||||
tx.clk_i(clk);
|
tx.clk_i(clk);
|
||||||
tx.isck(cxs_chan.tsck);
|
tx.isck(cxs_chan.tsck);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user