SystemC  2.3.1
Accellera SystemC proof-of-concept library
sc_wait_cthread.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 /*****************************************************************************
19 
20  sc_wait_cthread.h -- Wait() and related functions for SC_CTHREADs.
21 
22  Original Author: Stan Y. Liao, Synopsys, Inc.
23  Martin Janssen, Synopsys, Inc.
24 
25  CHANGE LOG AT THE END OF THE FILE
26  *****************************************************************************/
27 
28 
29 #ifndef SC_WAIT_CTHREAD_H
30 #define SC_WAIT_CTHREAD_H
31 
32 
36 
37 
38 namespace sc_core
39 {
40 
41 // for SC_CTHREADs
42 
43 extern
44 void
45 halt( sc_simcontext* = sc_get_curr_simcontext() );
46 
47 
48 extern
49 void
50 wait( int,
51  sc_simcontext* = sc_get_curr_simcontext() );
52 
53 
54 extern
55 void
56 at_posedge( const sc_signal_in_if<bool>&,
57  sc_simcontext* = sc_get_curr_simcontext() );
58 
59 extern
60 void
61 at_posedge( const sc_signal_in_if<sc_dt::sc_logic>&,
62  sc_simcontext* = sc_get_curr_simcontext() );
63 
64 extern
65 void
66 at_negedge( const sc_signal_in_if<bool>&,
67  sc_simcontext* = sc_get_curr_simcontext() );
68 
69 extern
70 void
71 at_negedge( const sc_signal_in_if<sc_dt::sc_logic>&,
72  sc_simcontext* = sc_get_curr_simcontext() );
73 
74 
75 } // namespace sc_core
76 
77 /*
78 $Log: sc_wait_cthread.h,v $
79 Revision 1.6 2011/08/26 20:46:11 acg
80  Andy Goodrich: moved the modification log to the end of the file to
81  eliminate source line number skew when check-ins are done.
82 
83 Revision 1.5 2011/08/24 22:05:51 acg
84  Torsten Maehne: initialization changes to remove warnings.
85 
86 Revision 1.4 2011/02/18 20:27:14 acg
87  Andy Goodrich: Updated Copyrights.
88 
89 Revision 1.3 2011/02/13 21:47:38 acg
90  Andy Goodrich: update copyright notice.
91 
92 Revision 1.2 2008/05/22 17:06:27 acg
93  Andy Goodrich: updated copyright notice to include 2008.
94 
95 Revision 1.1.1.1 2006/12/15 20:20:05 acg
96 SystemC 2.3
97 
98 Revision 1.2 2006/01/03 23:18:45 acg
99 Changed copyright to include 2006.
100 
101 Revision 1.1.1.1 2005/12/19 23:16:44 acg
102 First check in of SystemC 2.1 into its own archive.
103 
104 Revision 1.10 2005/09/02 19:03:30 acg
105 Changes for dynamic processes. Removal of lambda support.
106 
107 Revision 1.9 2005/04/04 00:16:08 acg
108 Changes for directory name change to sys from systemc.
109 Changes for sc_string going to std::string.
110 Changes for sc_pvector going to std::vector.
111 Changes for reference pools for bit and part selections.
112 Changes for const sc_concatref support.
113 
114 Revision 1.6 2005/01/10 17:52:20 acg
115 Addition of namespace specifications.
116 
117 Revision 1.5 2004/09/27 20:49:10 acg
118 Andy Goodrich, Forte Design Systems, Inc.
119  - Added a $Log comment so that CVS checkin comments appear in the
120  checkout source.
121 
122 */
123 
124 #endif
void at_negedge(const sc_signal_in_if< bool > &, sc_simcontext *=sc_get_curr_simcontext())
void wait(int, sc_simcontext *)
void at_posedge(const sc_signal_in_if< bool > &, sc_simcontext *=sc_get_curr_simcontext())
void halt(sc_simcontext *)
sc_simcontext * sc_get_curr_simcontext()