Go to the documentation of this file.
32 #ifndef __SIMPLE_LT_INITIATOR1_DMI_H__
33 #define __SIMPLE_LT_INITIATOR1_DMI_H__
60 unsigned int nrOfTransactions = 0x5,
61 unsigned int baseAddress = 0x0) :
107 std::cout <<
name() <<
": Send write request: A = 0x"
108 << std::hex << (
unsigned int)trans.get_address()
109 <<
", D = 0x" <<
mData << std::dec
113 std::cout <<
name() <<
": Send read request: A = 0x"
114 << std::hex << (
unsigned int)trans.get_address() << std::dec
122 std::cout <<
name() <<
": Received error response @ "
126 std::cout <<
name() <<
": Received ok response";
128 std::cout <<
": D = 0x" << std::hex <<
mData << std::dec;
197 if (
socket->get_direct_mem_ptr(trans, tmp)
198 && tmp.is_write_allowed() )
217 dmiData.set_start_address(1);
218 dmiData.set_end_address(0);
228 std::cout <<
name() <<
": got DMI pointer invalidation"
233 std::cout <<
name() <<
": ignored DMI invalidation for addresses "
234 << std::hex << start_range <<
", "
235 << end_range << std::dec
244 std::cout <<
name() <<
", <<SimpleLTInitiator1>>:" << std::endl
246 unsigned char data[32];
254 unsigned int n =
socket->transport_dbg(trans);
256 std::cout <<
"Mem @" << std::hex <<
mBaseAddress << std::endl;
273 for (
unsigned int i=0;
i<
n;
i+=4)
275 for (
int k=e_start;
k!=e_end;
k+=e_increment)
277 std::cout << std::setw(2) << std::setfill(
'0')
282 std::cout << std::endl;
291 std::cout <<
"ERROR: debug transaction didn't give data." << std::endl;
293 std::cout << std::dec << std::endl;
sc_core::sc_time get_read_latency() const
tlm::tlm_bw_transport_if bw_interface_type
void set_data_length(const unsigned int length)
tlm::tlm_initiator_socket initiator_socket_type
tlm::tlm_phase phase_type
const sc_time SC_ZERO_TIME
bool is_dmi_allowed() const
void invalidate(dmi_type &dmiData)
sc_core::sc_time get_write_latency() const
void set_dmi_allowed(bool dmi_allowed)
tlm_command get_command() const
void set_command(const tlm_command command)
sync_enum_type nb_transport_bw(transaction_type &trans, phase_type &phase, sc_core::sc_time &t)
unsigned int mNrOfTransactions
void logEndTransaction(transaction_type &trans)
unsigned int mBaseAddress
sc_dt::uint64 get_end_address() const
SC_HAS_PROCESS(SimpleLTInitiator1_dmi)
sc_dt::uint64 get_start_address() const
void logStartTransation(transaction_type &trans)
void set_streaming_width(const unsigned int streaming_width)
tlm::tlm_fw_transport_if fw_interface_type
unsigned char * get_dmi_ptr() const
tlm::tlm_sync_enum sync_enum_type
sc_core::sc_event mEndEvent
tlm::tlm_generic_payload transaction_type
bool host_has_little_endianness()
const char * name() const
SimpleLTInitiator1_dmi(sc_core::sc_module_name name, unsigned int nrOfTransactions=0x5, unsigned int baseAddress=0x0)
void set_address(const sc_dt::uint64 address)
bool initTransaction(transaction_type &trans)
void invalidate_direct_mem_ptr(sc_dt::uint64 start_range, sc_dt::uint64 end_range)
sc_dt::uint64 get_address() const
const sc_time & sc_time_stamp()
initiator_socket_type socket
unsigned int mTransactionCount
void set_data_ptr(unsigned char *data)
void set_response_status(const tlm_response_status response_status)
Generated on Wed Sep 30 2020 14:02:16 for gem5 by doxygen 1.8.17