applies clang-format
This commit is contained in:
@@ -7,19 +7,18 @@
|
||||
#include <scc/observer.h>
|
||||
#include <scc/sc_variable.h>
|
||||
#include <scc/tracer.h>
|
||||
#include <tlm/nw/initiator_mixin.h>
|
||||
#include <tlm/nw/target_mixin.h>
|
||||
#include <string>
|
||||
#include <systemc>
|
||||
#include <tlm/nw/initiator_mixin.h>
|
||||
#include <tlm/nw/target_mixin.h>
|
||||
|
||||
using namespace sc_core;
|
||||
using namespace sc_dt;
|
||||
using namespace std;
|
||||
using namespace cxs;
|
||||
|
||||
const char* sc_gen_unique_name( const char*, bool preserve_first );
|
||||
template<unsigned PHIT_WIDTH>
|
||||
struct testbench : public sc_core::sc_module {
|
||||
const char* sc_gen_unique_name(const char*, bool preserve_first);
|
||||
template <unsigned PHIT_WIDTH> struct testbench : public sc_core::sc_module {
|
||||
|
||||
using transaction_type = cxs_packet_types::tlm_payload_type;
|
||||
using phase_type = cxs_packet_types::tlm_phase_type;
|
||||
@@ -30,19 +29,17 @@ struct testbench : public sc_core::sc_module {
|
||||
cxs_transmitter<PHIT_WIDTH> tx{"tx"};
|
||||
cxs_channel<PHIT_WIDTH> cxs_chan{"cxs_chan"};
|
||||
cxs_receiver<PHIT_WIDTH> rx{"rx"};
|
||||
tlm::nw::target_mixin<cxs_pkt_target_socket<>,cxs_packet_types> tsck{"tsck"};
|
||||
tlm::nw::target_mixin<cxs_pkt_target_socket<>, cxs_packet_types> tsck{"tsck"};
|
||||
|
||||
testbench()
|
||||
: testbench(sc_core::sc_gen_unique_name("testbench", false)) {}
|
||||
|
||||
testbench(sc_core::sc_module_name const& nm)
|
||||
: sc_module(nm) {
|
||||
isck.register_nb_transport_bw([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([this](transaction_type& trans, phase_type& phase, sc_core::sc_time& t) {
|
||||
return this->nb_transport_fw(trans, phase, t);
|
||||
});
|
||||
isck.register_nb_transport_bw(
|
||||
[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(
|
||||
[this](transaction_type& trans, phase_type& phase, sc_core::sc_time& t) { return this->nb_transport_fw(trans, phase, t); });
|
||||
isck(tx.tsck);
|
||||
tx.clk_i(clk);
|
||||
tx.isck(cxs_chan.tsck);
|
||||
|
Reference in New Issue
Block a user