Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | |
2 | ||
3 | /***************************************************************************** | |
4 | ||
5 | The following code is derived, directly or indirectly, from the SystemC | |
6 | source code Copyright (c) 1996-2004 by all Contributors. | |
7 | All Rights reserved. | |
8 | ||
9 | The contents of this file are subject to the restrictions and limitations | |
10 | set forth in the SystemC Open Source License Version 2.4 (the "License"); | |
11 | You may not use this file except in compliance with such restrictions and | |
12 | limitations. You may obtain instructions on how to receive a copy of the | |
13 | License at http://www.systemc.org/. Software distributed by Contributors | |
14 | under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF | |
15 | ANY KIND, either express or implied. See the License for the specific | |
16 | language governing rights and limitations under the License. | |
17 | ||
18 | *****************************************************************************/ | |
19 | ||
20 | ||
21 | #ifndef TLM_ANNOTATED_MASTER_SLAVE_IFS_HEADER | |
22 | #define TLM_ANNOTATED_MASTER_SLAVE_IFS_HEADER | |
23 | ||
24 | // | |
25 | // req/rsp combined interfaces | |
26 | // | |
27 | ||
28 | #include "tlm_annotated/tlm_annotated_ifs/tlm_annotated_ifs.h" | |
29 | ||
30 | using tlm_core::tlm_nonblocking_master_if; | |
31 | using tlm_core::tlm_nonblocking_slave_if; | |
32 | using tlm_core::tlm_master_if; | |
33 | using tlm_core::tlm_slave_if; | |
34 | ||
35 | // nonblocking | |
36 | ||
37 | template < typename REQ , typename RSP > | |
38 | class tlm_annotated_nonblocking_master_if : | |
39 | public virtual tlm_annotated_nonblocking_put_if< REQ > , | |
40 | public virtual tlm_annotated_nonblocking_get_peek_if< RSP > , | |
41 | public virtual tlm_nonblocking_master_if < REQ , RSP >{}; | |
42 | ||
43 | template < typename REQ , typename RSP > | |
44 | class tlm_annotated_nonblocking_slave_if: | |
45 | public virtual tlm_annotated_nonblocking_put_if< RSP > , | |
46 | public virtual tlm_annotated_nonblocking_get_peek_if< REQ > , | |
47 | public virtual tlm_nonblocking_slave_if< REQ , RSP > {}; | |
48 | ||
49 | // combined | |
50 | ||
51 | template < typename REQ , typename RSP > | |
52 | class tlm_annotated_master_if : | |
53 | public virtual tlm_annotated_put_if< REQ > , | |
54 | public virtual tlm_annotated_get_peek_if< RSP > , | |
55 | public virtual tlm_annotated_nonblocking_master_if< REQ , RSP > , | |
56 | public virtual tlm_master_if< REQ , RSP > {}; | |
57 | ||
58 | template < typename REQ , typename RSP> | |
59 | class tlm_annotated_slave_if : | |
60 | public virtual tlm_annotated_put_if< RSP > , | |
61 | public virtual tlm_annotated_get_peek_if< REQ > , | |
62 | public virtual tlm_annotated_nonblocking_slave_if< REQ , RSP > , | |
63 | public virtual tlm_slave_if< REQ , RSP >{}; | |
64 | ||
65 | #endif |