TLM-2.0  2.0.4
Accellera TLM-2.0 proof-of-concept library
tlm_base_socket_if.h
Go to the documentation of this file.
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
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15  implied. See the License for the specific language governing
16  permissions and limitations under the License.
17 
18  *****************************************************************************/
19 
20 #ifndef TLM_CORE_TLM_BASE_SOCKET_IF_H_INCLUDED_
21 #define TLM_CORE_TLM_BASE_SOCKET_IF_H_INCLUDED_
22 
24 
25 namespace tlm {
26 
28 {
32 
34 
37 };
38 
40 {
41 public:
42  virtual sc_core::sc_port_base & get_port_base() = 0;
43  virtual sc_core::sc_port_base const & get_port_base() const = 0;
45  virtual sc_core::sc_export_base const & get_export_base() const = 0;
46  virtual unsigned int get_bus_width() const = 0;
47  virtual sc_core::sc_type_index get_protocol_types() const = 0;
48  virtual tlm_socket_category get_socket_category() const = 0;
49 
50 protected:
51  virtual ~tlm_base_socket_if() {}
52 };
53 
54 } // namespace tlm
55 
56 #endif // TLM_CORE_TLM_BASE_SOCKET_IF_H_INCLUDED_
virtual unsigned int get_bus_width() const =0
virtual sc_core::sc_export_base & get_export_base()=0
virtual sc_core::sc_type_index get_protocol_types() const =0
virtual sc_core::sc_port_base & get_port_base()=0
virtual tlm_socket_category get_socket_category() const =0