scc
2022.4.0
SystemC components library
|
a simple access-width based bus interface (no DMI support) More...
#include <tlm_target.h>
Public Types | |
using | this_type = tlm_target< BUSWIDTH, ADDR_UNIT_WIDTH > |
Public Member Functions | |
tlm_target (sc_core::sc_time &clock, const char *socket_name="socket") | |
the constructor More... | |
void | b_tranport_cb (tlm::tlm_generic_payload &gp, sc_core::sc_time &d) |
the blocking transport callback More... | |
unsigned int | tranport_dbg_cb (tlm::tlm_generic_payload &gp) |
the debug transport callback More... | |
void | addResource (resource_access_if &rai, uint64_t base_addr) |
add a resource to this target at a certain address within the socket address range More... | |
void | addResource (indexed_resource_access_if &irai, uint64_t base_addr) |
add an indexed resource to this target at a certain address within the socket address range More... | |
Public Attributes | |
tlm::scc::target_mixin< tlm::scc::scv::tlm_rec_target_socket< BUSWIDTH > > | socket |
the target socket | |
Protected Attributes | |
util::range_lut< std::pair< resource_access_if *, uint64_t > > | socket_map |
a simple access-width based bus interface (no DMI support)
BUSWIDTH | |
ADDR_UNIT_WIDTH |
Definition at line 44 of file tlm_target.h.
|
inline |
the constructor
clock | the clock period of the component |
socket_name | optional name of the internal socket |
Definition at line 129 of file tlm_target.h.
|
inline |
add an indexed resource to this target at a certain address within the socket address range
irai | the resource to add |
base_addr | the offset of the resource (from address 0) |
Definition at line 89 of file tlm_target.h.
|
inline |
add a resource to this target at a certain address within the socket address range
rai | the resource to add |
base_addr | the offset of the resource (from address 0) |
Definition at line 80 of file tlm_target.h.
void scc::tlm_target< BUSWIDTH, ADDR_UNIT_WIDTH >::b_tranport_cb | ( | tlm::tlm_generic_payload & | gp, |
sc_core::sc_time & | d | ||
) |
the blocking transport callback
gp | the generic payload |
d | the delay in the local time domain |
Definition at line 138 of file tlm_target.h.
unsigned int scc::tlm_target< BUSWIDTH, ADDR_UNIT_WIDTH >::tranport_dbg_cb | ( | tlm::tlm_generic_payload & | gp | ) |
the debug transport callback
gp | the generic payload |
Definition at line 205 of file tlm_target.h.