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;
138 transaction_type trans;
145 socket->b_transport(trans, t);
149 std::cout <<
"Sync'ing..." << std::endl;
void set_response_status(const tlm_response_status response_status)
void set_streaming_width(const unsigned int streaming_width)
SC_HAS_PROCESS(CoreDecouplingLTInitiator)
const char * name() const
void logStartTransation(transaction_type &trans)
virtual bool need_sync() const
sc_dt::uint64 get_address() const
static void set_global_quantum(const sc_core::sc_time &t)
void set_address(const sc_dt::uint64 address)
virtual sc_core::sc_time get_local_time() const
unsigned int mTransactionCount
unsigned int mNrOfTransactions
void set_data_ptr(unsigned char *data)
tlm_utils::tlm_quantumkeeper mQuantumKeeper
virtual sc_core::sc_time get_current_time() const
initiator_socket_type socket
const sc_time & sc_time_stamp()
tlm_response_status get_response_status() const
tlm_command get_command() const
tlm::tlm_generic_payload transaction_type
void set_command(const tlm_command command)
void logEndTransaction(transaction_type &trans)
CoreDecouplingLTInitiator(sc_core::sc_module_name name, unsigned int nrOfTransactions=0x5, unsigned int baseAddress=0)
tlm_utils::simple_initiator_socket< CoreDecouplingLTInitiator > initiator_socket_type
bool initTransaction(transaction_type &trans)
void set_data_length(const unsigned int length)
virtual void set(const sc_core::sc_time &t)
unsigned int mBaseAddress