gem5  v20.1.0.0
master_slave_ifs.hh
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_1_REQ_RSP_INTERFACES_MASTER_SLAVE_IFS_HH__
21 #define __TLM_CORE_1_REQ_RSP_INTERFACES_MASTER_SLAVE_IFS_HH__
22 
23 #include "core_ifs.hh"
24 
25 namespace tlm
26 {
27 
28 //
29 // req/rsp combined interfaces
30 //
31 
32 // Blocking.
33 template <typename REQ, typename RSP>
34 class tlm_blocking_master_if :
35  public virtual tlm_blocking_put_if<REQ>,
36  public virtual tlm_blocking_get_peek_if<RSP>
37 {};
38 
39 template <typename REQ, typename RSP>
40 class tlm_blocking_slave_if :
41  public virtual tlm_blocking_put_if<RSP>,
42  public virtual tlm_blocking_get_peek_if<REQ>
43 {};
44 
45 // Nonblocking.
46 template <typename REQ, typename RSP>
47 class tlm_nonblocking_master_if :
48  public virtual tlm_nonblocking_put_if<REQ>,
49  public virtual tlm_nonblocking_get_peek_if<RSP>
50 {};
51 
52 template <typename REQ, typename RSP>
54  public virtual tlm_nonblocking_put_if<RSP>,
55  public virtual tlm_nonblocking_get_peek_if<REQ>
56 {};
57 
58 // Combined.
59 template <typename REQ, typename RSP>
60 class tlm_master_if : public virtual tlm_put_if<REQ>,
61  public virtual tlm_get_peek_if<RSP> ,
62  public virtual tlm_blocking_master_if<REQ, RSP>,
63  public virtual tlm_nonblocking_master_if<REQ, RSP>
64 {};
65 
66 template <typename REQ, typename RSP>
67 class tlm_slave_if : public virtual tlm_put_if<RSP>,
68  public virtual tlm_get_peek_if<REQ>,
69  public virtual tlm_blocking_slave_if<REQ, RSP>,
70  public virtual tlm_nonblocking_slave_if<REQ, RSP>
71 {};
72 
73 } // namespace tlm
74 
75 #endif /* __TLM_CORE_1_REQ_RSP_INTERFACES_MASTER_SLAVE_IFS_HH__ */
tlm::tlm_blocking_master_if
Definition: master_slave_ifs.hh:51
tlm::tlm_slave_if
Definition: master_slave_ifs.hh:84
tlm::tlm_get_peek_if
Definition: core_ifs.hh:145
tlm::tlm_put_if
Definition: core_ifs.hh:104
core_ifs.hh
tlm::tlm_nonblocking_slave_if
Definition: master_slave_ifs.hh:70
tlm::tlm_blocking_slave_if
Definition: master_slave_ifs.hh:57
tlm
Definition: analysis_fifo.hh:27
tlm::tlm_nonblocking_get_peek_if
Definition: core_ifs.hh:140
tlm::tlm_nonblocking_master_if
Definition: master_slave_ifs.hh:64
tlm::tlm_master_if
Definition: master_slave_ifs.hh:77
tlm::tlm_nonblocking_put_if
Definition: core_ifs.hh:88

Generated on Wed Sep 30 2020 14:02:16 for gem5 by doxygen 1.8.17