32#ifndef __CORE_DECOUPLING_LT_INITIATOR_H__
33#define __CORE_DECOUPLING_LT_INITIATOR_H__
36#include "tlm_utils/simple_initiator_socket.h"
37#include "tlm_utils/tlm_quantumkeeper.h"
54 unsigned int nrOfTransactions = 0x5,
55 unsigned int baseAddress = 0) :
97 std::cout <<
name() <<
": Send write request: A = 0x"
99 <<
", D = 0x" <<
mData << std::dec
106 std::cout <<
name() <<
": Send read request: A = 0x"
118 std::cout <<
name() <<
": Received error response @ "
125 std::cout <<
name() <<
": Received ok response";
127 std::cout <<
": D = 0x" << std::hex <<
mData << std::dec;
145 socket->b_transport(trans, t);
149 std::cout <<
"Sync'ing..." << std::endl;
CoreDecouplingLTInitiator(sc_core::sc_module_name name, unsigned int nrOfTransactions=0x5, unsigned int baseAddress=0)
tlm_utils::tlm_quantumkeeper mQuantumKeeper
void logEndTransaction(transaction_type &trans)
tlm::tlm_generic_payload transaction_type
tlm_utils::simple_initiator_socket< CoreDecouplingLTInitiator > initiator_socket_type
void logStartTransation(transaction_type &trans)
bool initTransaction(transaction_type &trans)
SC_HAS_PROCESS(CoreDecouplingLTInitiator)
initiator_socket_type socket
unsigned int mTransactionCount
unsigned int mBaseAddress
unsigned int mNrOfTransactions
const char * name() const
void set_data_ptr(unsigned char *data)
void set_response_status(const tlm_response_status response_status)
void set_address(const sc_dt::uint64 address)
void set_command(const tlm_command command)
sc_dt::uint64 get_address() const
tlm_response_status get_response_status() const
void set_data_length(const unsigned int length)
tlm_command get_command() const
void set_streaming_width(const unsigned int streaming_width)
virtual sc_core::sc_time get_current_time() const
virtual sc_core::sc_time get_local_time() const
virtual void set(const sc_core::sc_time &t)
static void set_global_quantum(const sc_core::sc_time &t)
virtual bool need_sync() const
const sc_time & sc_time_stamp()
@ TLM_INCOMPLETE_RESPONSE