TLM-2.0  2.0.3
Accellera TLM-2.0 proof-of-concept library
tlm_nonblocking_port.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  The following code is derived, directly or indirectly, from the SystemC
4  source code Copyright (c) 1996-2014 by all Contributors.
5  All Rights reserved.
6 
7  The contents of this file are subject to the restrictions and limitations
8  set forth in the SystemC Open Source License (the "License");
9  You may not use this file except in compliance with such restrictions and
10  limitations. You may obtain instructions on how to receive a copy of the
11  License at http://www.accellera.org/. Software distributed by Contributors
12  under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
13  ANY KIND, either express or implied. See the License for the specific
14  language governing rights and limitations under the License.
15 
16  *****************************************************************************/
17 
18 #ifndef __TLM_NONBLOCKING_PORT_H__
19 #define __TLM_NONBLOCKING_PORT_H__
20 
23 
24 namespace tlm {
25 
26 template < typename T >
28 public sc_core::sc_port< tlm_nonblocking_get_if< T > , 1 >
29 {
30 public:
32 
33  tlm_nonblocking_get_port( const char *port_name ) :
34  sc_core::sc_port< tlm_nonblocking_get_if< T > , 1 >( port_name ) {}
35 
37 
39  *this,
41 
42  }
43 
44 };
45 
46 template < typename T >
48 public sc_core::sc_port< tlm_nonblocking_peek_if< T > , 1 >
49 {
50 public:
52 
53  tlm_nonblocking_peek_port( const char *port_name ) :
54  sc_core::sc_port< tlm_nonblocking_peek_if< T > , 1 >( port_name ) {}
55 
57 
59  *this,
61 
62  }
63 
64 };
65 
66 
67 template < typename T >
69 public sc_core::sc_port< tlm_nonblocking_put_if< T > , 1 >
70 {
71 public:
73 
74  tlm_nonblocking_put_port( const char *port_name ) :
75  sc_core::sc_port< tlm_nonblocking_put_if< T > , 1 >( port_name ) {}
76 
78 
80  *this,
82 
83  }
84 
85 };
86 
87 } // namespace tlm
88 
89 #endif
virtual const sc_core::sc_event & ok_to_get(tlm_tag< T > *t=0) const =0
tlm_nonblocking_peek_port(const char *port_name)
sc_core::sc_event_finder & ok_to_put() const
tlm_nonblocking_get_if< T > get_if_type
tlm_nonblocking_put_if< T > put_if_type
virtual const sc_core::sc_event & ok_to_put(tlm_tag< T > *t=0) const =0
tlm_nonblocking_get_port(const char *port_name)
sc_core::sc_event_finder & ok_to_peek() const
tlm_nonblocking_put_port(const char *port_name)
tlm_nonblocking_peek_if< T > peek_if_type
virtual const sc_core::sc_event & ok_to_peek(tlm_tag< T > *t=0) const =0
sc_core::sc_event_finder & ok_to_get() const