TLM-2.0
2.0.4
Accellera TLM-2.0 proof-of-concept library
tlm_master_slave_ifs.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_MASTER_SLAVE_IFS_H__
21
#define __TLM_MASTER_SLAVE_IFS_H__
22
23
#include "
tlm_core/tlm_1/tlm_req_rsp/tlm_1_interfaces/tlm_core_ifs.h
"
24
25
namespace
tlm
{
26
27
//
28
// req/rsp combined interfaces
29
//
30
31
// blocking
32
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
template
<
typename
REQ ,
typename
RSP>
39
class
tlm_blocking_slave_if
:
40
public
virtual
tlm_blocking_put_if
< RSP > ,
41
public
virtual
tlm_blocking_get_peek_if
< REQ > {};
42
43
// nonblocking
44
45
template
<
typename
REQ ,
typename
RSP >
46
class
tlm_nonblocking_master_if
:
47
public
virtual
tlm_nonblocking_put_if
< REQ > ,
48
public
virtual
tlm_nonblocking_get_peek_if
< RSP > {};
49
50
template
<
typename
REQ ,
typename
RSP >
51
class
tlm_nonblocking_slave_if
:
52
public
virtual
tlm_nonblocking_put_if
< RSP > ,
53
public
virtual
tlm_nonblocking_get_peek_if
< REQ > {};
54
55
// combined
56
57
template
<
typename
REQ ,
typename
RSP >
58
class
tlm_master_if
:
59
public
virtual
tlm_put_if
< REQ > ,
60
public
virtual
tlm_get_peek_if
< RSP > ,
61
public
virtual
tlm_blocking_master_if
< REQ , RSP > ,
62
public
virtual
tlm_nonblocking_master_if
< REQ , RSP > {};
63
64
template
<
typename
REQ ,
typename
RSP >
65
class
tlm_slave_if
:
66
public
virtual
tlm_put_if
< RSP > ,
67
public
virtual
tlm_get_peek_if
< REQ > ,
68
public
virtual
tlm_blocking_slave_if
< REQ , RSP > ,
69
public
virtual
tlm_nonblocking_slave_if
< REQ , RSP > {};
70
71
}
// namespace tlm
72
73
#endif
tlm::tlm_blocking_put_if
Definition:
tlm_core_ifs.h:61
tlm::tlm_nonblocking_get_peek_if
Definition:
tlm_core_ifs.h:134
tlm::tlm_blocking_get_peek_if
Definition:
tlm_core_ifs.h:129
tlm::tlm_master_if
Definition:
tlm_master_slave_ifs.h:58
tlm::tlm_blocking_slave_if
Definition:
tlm_master_slave_ifs.h:39
tlm::tlm_nonblocking_slave_if
Definition:
tlm_master_slave_ifs.h:51
tlm::tlm_nonblocking_put_if
Definition:
tlm_core_ifs.h:79
tlm_core_ifs.h
tlm::tlm_get_peek_if
Definition:
tlm_core_ifs.h:140
tlm::tlm_blocking_master_if
Definition:
tlm_master_slave_ifs.h:34
tlm
Definition:
tlm_analysis_fifo.h:27
tlm::tlm_slave_if
Definition:
tlm_master_slave_ifs.h:65
tlm::tlm_put_if
Definition:
tlm_core_ifs.h:96
tlm::tlm_nonblocking_master_if
Definition:
tlm_master_slave_ifs.h:46
tlm_core
tlm_1
tlm_req_rsp
tlm_1_interfaces
tlm_master_slave_ifs.h
Generated on Sun Oct 28 2018 23:12:13 for TLM-2.0 by
1.8.13