Go to the documentation of this file.
32 #ifndef __SIMPLE_AT_INITIATOR1_H__
33 #define __SIMPLE_AT_INITIATOR1_H__
36 #include "tlm_utils/simple_initiator_socket.h"
52 template <
typename DT>
101 unsigned int nrOfTransactions = 0x5,
102 unsigned int baseAddress = 0x0) :
139 trans->set_data_length(4);
140 trans->set_streaming_width(4);
149 std::cout <<
name() <<
": Send write request: A = 0x"
150 << std::hex << (
unsigned int)trans.get_address()
151 <<
", D = 0x" << trans.getData() << std::dec
155 std::cout <<
name() <<
": Send read request: A = 0x"
156 << std::hex << (int)trans.get_address() << std::dec
164 std::cout <<
name() <<
": Received error response @ "
168 std::cout <<
name() <<
": Received ok response";
170 std::cout <<
": D = 0x" << trans.getData() << std::dec;
197 switch (
socket->nb_transport_fw(trans, phase,
t)) {
unsigned int mBaseAddress
void register_nb_transport_bw(MODULE *mod, sync_enum_type(MODULE::*cb)(transaction_type &, phase_type &, sc_core::sc_time &))
const sc_core::sc_time ACCEPT_DELAY
std::queue< mytransaction_type * > mEndResponseQueue
MyTransaction< unsigned int > mytransaction_type
SimpleATInitiator1(sc_core::sc_module_name name, unsigned int nrOfTransactions=0x5, unsigned int baseAddress=0x0)
const sc_time SC_ZERO_TIME
bool initTransaction(mytransaction_type *&trans)
tlm::tlm_generic_payload transaction_type
unsigned int mTransactionCount
void free(tlm::tlm_generic_payload *t)
SC_HAS_PROCESS(SimpleATInitiator1)
sc_core::sc_event mEndRequestPhase
void logStartTransation(mytransaction_type &trans)
transaction_type * mCurrentTransaction
tlm::tlm_sync_enum sync_enum_type
const char * name() const
void set_address(const sc_dt::uint64 address)
tlm_utils::simple_initiator_socket< SimpleATInitiator1 > initiator_socket_type
tlm::tlm_phase phase_type
mytransaction_type * claim()
unsigned int mNrOfTransactions
void release(mytransaction_type *t)
void logEndTransaction(mytransaction_type &trans)
const sc_time & sc_time_stamp()
sync_enum_type myNBTransport(transaction_type &trans, phase_type &phase, sc_core::sc_time &t)
initiator_socket_type socket
sc_core::sc_event mEndResponseEvent
void set_data_ptr(unsigned char *data)
Generated on Wed Sep 30 2020 14:02:16 for gem5 by doxygen 1.8.17