18 #ifndef __TLM_TARGET_SOCKET_H__
19 #define __TLM_TARGET_SOCKET_H__
27 template <
unsigned int BUSWIDTH = 32,
28 typename FW_IF = tlm_fw_transport_if<>,
29 typename BW_IF = tlm_bw_transport_if<> >
30 class tlm_base_target_socket_b
40 template <
unsigned int BUSWIDTH,
42 typename BW_IF>
class tlm_base_initiator_socket_b;
44 template <
unsigned int BUSWIDTH,
48 #if !(defined SYSTEMC_VERSION & SYSTEMC_VERSION <= 20050714)
51 >
class tlm_base_initiator_socket;
53 template <
unsigned int BUSWIDTH = 32,
54 typename FW_IF = tlm_fw_transport_if<>,
55 typename BW_IF = tlm_bw_transport_if<>,
57 #if !(defined SYSTEMC_VERSION & SYSTEMC_VERSION <= 20050714)
61 class tlm_base_target_socket :
public tlm_base_target_socket_b<BUSWIDTH, FW_IF, BW_IF>,
68 #if !(defined SYSTEMC_VERSION & SYSTEMC_VERSION <= 20050714)
82 template <
unsigned int,
typename,
typename,
int
83 #if !(defined SYSTEMC_VERSION & SYSTEMC_VERSION <= 20050714)
103 virtual const char*
kind()
const
105 return "tlm_base_target_socket";
182 return m_port.operator->();
190 return m_port.operator[](i);
203 #if !( defined(IEEE_1666_SYSTEMC) && IEEE_1666_SYSTEMC >= 201101L )
223 template <
unsigned int BUSWIDTH = 32,
226 #if !(defined SYSTEMC_VERSION & SYSTEMC_VERSION <= 20050714)
232 tlm_fw_transport_if<TYPES>,
233 tlm_bw_transport_if<TYPES>,
235 #if !(defined SYSTEMC_VERSION & SYSTEMC_VERSION <= 20050714)
241 tlm_target_socket() :
242 tlm_base_target_socket<BUSWIDTH,
243 tlm_fw_transport_if<TYPES>,
244 tlm_bw_transport_if<TYPES>,
246 #if !(defined SYSTEMC_VERSION & SYSTEMC_VERSION <= 20050714)
253 explicit tlm_target_socket(const char* name) :
254 tlm_base_target_socket<BUSWIDTH,
255 tlm_fw_transport_if<TYPES>,
256 tlm_bw_transport_if<TYPES>,
258 #if !(defined SYSTEMC_VERSION & SYSTEMC_VERSION <= 20050714)
265 virtual const char* kind() const
267 return "tlm_target_socket";
virtual ~tlm_base_target_socket_b()
void operator()(base_initiator_socket_type &s)
virtual sc_core::sc_port_b< BW_IF > & get_base_port()
virtual FW_IF const & get_base_interface() const
virtual sc_core::sc_export< FW_IF > & get_base_export()
virtual sc_core::sc_port_b< BW_IF > const & get_base_port() const
bw_interface_type * operator[](int i)
tlm_base_initiator_socket_b< BUSWIDTH, fw_interface_type, bw_interface_type > base_initiator_socket_type
tlm_base_target_socket_b< BUSWIDTH, fw_interface_type, bw_interface_type > base_type
sc_core::sc_port< bw_interface_type, N, POL > port_type
unsigned int get_bus_width() const
virtual sc_core::sc_export< FW_IF > & get_base_export()=0
bw_interface_type * operator->()
virtual FW_IF & get_base_interface()=0
virtual sc_core::sc_export< FW_IF > const & get_base_export() const
sc_core::sc_export< fw_interface_type > export_type
const char * sc_gen_unique_name(const char *, bool preserve_first)
tlm_base_target_socket(const char *name)
virtual const char * kind() const
virtual sc_core::sc_port_b< BW_IF > & get_base_port()=0
virtual void bind(base_type &s)
virtual void bind(base_initiator_socket_type &s)
virtual BW_IF & get_base_interface()=0
virtual sc_core::sc_port_b< FW_IF > & get_base_port()=0
virtual FW_IF & get_base_interface()
SC_VIRTUAL_ void bind(IF &interface_)
virtual void bind(fw_interface_type &ifs)