Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / model / vendor / TLM-2006-11-29 / tlm / tlm_annotated / tlm_annotated_ifs / tlm_annotated_master_slave_ifs.h
CommitLineData
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
30using tlm_core::tlm_nonblocking_master_if;
31using tlm_core::tlm_nonblocking_slave_if;
32using tlm_core::tlm_master_if;
33using tlm_core::tlm_slave_if;
34
35// nonblocking
36
37template < typename REQ , typename RSP >
38class 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
43template < typename REQ , typename RSP >
44class 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
51template < typename REQ , typename RSP >
52class 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
58template < typename REQ , typename RSP>
59class 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