gem5 v24.0.0.0
Loading...
Searching...
No Matches
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
25namespace tlm
26{
27
28//
29// req/rsp combined interfaces
30//
31
32// Blocking.
33template <typename REQ, typename RSP>
35 public virtual tlm_blocking_put_if<REQ>,
36 public virtual tlm_blocking_get_peek_if<RSP>
37{};
38
39template <typename REQ, typename RSP>
41 public virtual tlm_blocking_put_if<RSP>,
42 public virtual tlm_blocking_get_peek_if<REQ>
43{};
44
45// Nonblocking.
46template <typename REQ, typename RSP>
48 public virtual tlm_nonblocking_put_if<REQ>,
49 public virtual tlm_nonblocking_get_peek_if<RSP>
50{};
51
52template <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.
59template <typename REQ, typename RSP>
60class 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
66template <typename REQ, typename RSP>
67class 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__ */

Generated on Tue Jun 18 2024 16:24:07 for gem5 by doxygen 1.11.0