target_socket.hh (13521:74fa3ac44057) | target_socket.hh (13523:de27641700bb) |
---|---|
1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at --- 6 unchanged lines hidden (view full) --- 15 implied. See the License for the specific language governing 16 permissions and limitations under the License. 17 18 *****************************************************************************/ 19 20#ifndef __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_TARGET_SOCKET_HH__ 21#define __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_TARGET_SOCKET_HH__ 22 | 1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at --- 6 unchanged lines hidden (view full) --- 15 implied. See the License for the specific language governing 16 permissions and limitations under the License. 17 18 *****************************************************************************/ 19 20#ifndef __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_TARGET_SOCKET_HH__ 21#define __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_TARGET_SOCKET_HH__ 22 |
23#include <typeindex> 24 |
|
23#include "tlm_core/2/interfaces/fw_bw_ifs.hh" 24#include "tlm_core/2/sockets/base_socket_if.hh" 25 26namespace tlm 27{ 28 29template <unsigned int BUSWIDTH=32, typename FW_IF=tlm_fw_transport_if<>, 30 typename BW_IF=tlm_bw_transport_if<>> --- 175 unchanged lines hidden (view full) --- 206 explicit tlm_target_socket(const char *name) : 207 tlm_base_target_socket< 208 BUSWIDTH, tlm_fw_transport_if<TYPES>, 209 tlm_bw_transport_if<TYPES>, N, POL>(name) 210 {} 211 212 virtual const char* kind() const { return "tlm_target_socket"; } 213 | 25#include "tlm_core/2/interfaces/fw_bw_ifs.hh" 26#include "tlm_core/2/sockets/base_socket_if.hh" 27 28namespace tlm 29{ 30 31template <unsigned int BUSWIDTH=32, typename FW_IF=tlm_fw_transport_if<>, 32 typename BW_IF=tlm_bw_transport_if<>> --- 175 unchanged lines hidden (view full) --- 208 explicit tlm_target_socket(const char *name) : 209 tlm_base_target_socket< 210 BUSWIDTH, tlm_fw_transport_if<TYPES>, 211 tlm_bw_transport_if<TYPES>, N, POL>(name) 212 {} 213 214 virtual const char* kind() const { return "tlm_target_socket"; } 215 |
214 virtual sc_core::sc_type_index | 216 virtual std::type_index |
215 get_protocol_types() const 216 { 217 return typeid(TYPES); 218 } 219}; 220 221} // namespace tlm 222 223#endif /* __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_TARGET_SOCKET_HH__ */ | 217 get_protocol_types() const 218 { 219 return typeid(TYPES); 220 } 221}; 222 223} // namespace tlm 224 225#endif /* __SYSTEMC_EXT_TLM_CORE_2_SOCKETS_TARGET_SOCKET_HH__ */ |