Go to the documentation of this file.
20 #ifndef __SIMPLE_AT_TARGET2_H__
21 #define __SIMPLE_AT_TARGET2_H__
24 #include "tlm_utils/simple_target_socket.h"
78 assert(address < 400);
80 unsigned int&
data = *
reinterpret_cast<unsigned int*
>(trans.get_data_ptr());
82 std::cout <<
name() <<
": Received write request: A = 0x"
83 << std::hex << (
unsigned int)address <<
", D = 0x" <<
data
87 *
reinterpret_cast<unsigned int*
>(&
mMem[address]) =
data;
90 std::cout <<
name() <<
": Received read request: A = 0x"
91 << std::hex << (
unsigned int)address
95 data = *
reinterpret_cast<unsigned int*
>(&
mMem[address]);
140 assert(address < 400);
141 *
reinterpret_cast<unsigned int*
>(trans->get_data_ptr()) =
142 *
reinterpret_cast<unsigned int*
>(&
mMem[address]);
172 unsigned char mMem[400];
SC_HAS_PROCESS(SimpleATTarget2)
tlm_utils::simple_target_socket< SimpleATTarget2 > target_socket_type
tlm::tlm_generic_payload transaction_type
sc_core::sc_event mEndResponseEvent
std::queue< transaction_type * > mResponseQueue
const sc_time SC_ZERO_TIME
SimpleATTarget2(sc_core::sc_module_name name)
sync_enum_type myNBTransport(transaction_type &trans, phase_type &phase, sc_core::sc_time &t)
sc_core::sc_event mBeginResponseEvent
const sc_core::sc_time RESPONSE_DELAY
tlm::tlm_sync_enum sync_enum_type
tlm::tlm_phase phase_type
const char * name() const
const sc_core::sc_time ACCEPT_DELAY
target_socket_type socket
const sc_time & sc_time_stamp()
void register_nb_transport_fw(MODULE *mod, sync_enum_type(MODULE::*cb)(transaction_type &, phase_type &, sc_core::sc_time &))
Generated on Wed Sep 30 2020 14:02:16 for gem5 by doxygen 1.8.17