SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_status.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 /*****************************************************************************
21 
22  sc_status.h -- Definition of the simulation phases
23 */
33 #ifndef SC_STATUS_H_INCLUDED_
34 #define SC_STATUS_H_INCLUDED_
35 
36 #include <iosfwd>
37 
38 #include "sysc/kernel/sc_cmnhdr.h"
39 
40 namespace sc_core {
41 
42 // simulation status codes
43 
44 const int SC_SIM_OK = 0;
45 const int SC_SIM_ERROR = 1;
46 const int SC_SIM_USER_STOP = 2;
47 
49 { // sc_get_status values:
51 
52  SC_ELABORATION = 0x01,
56 
57  SC_RUNNING = 0x10,
58  SC_PAUSED = 0x20,
59  SC_STOPPED = 0x40,
61 
62  // detailed simulation phases (for dynamic callbacks)
64 // SC_END_OF_EVALUATION = 0x200, //!< between eval and update
65  SC_END_OF_UPDATE = 0x400,
67 
69  SC_STATUS_ANY = 0xdff
70 };
71 
72 // pretty-printing of sc_status values
73 SC_API std::ostream& operator << ( std::ostream&, sc_status );
74 
75 } // namespace sc_core
76 
77 /*****************************************************************************
78 
79  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
80  changes you are making here.
81 
82  Name, Affiliation, Date:
83  Description of Modification:
84 
85  *****************************************************************************/
86 
87 #endif /* SC_STATUS_H_INCLUDED_ */
88 // Taf!
89 
during module hierarchy construction
Definition: sc_status.h:52
inline ::std::ostream & operator<<(::std::ostream &os, const sc_fifo< T > &a)
Definition: sc_fifo.h:431
initialize() not called yet
Definition: sc_status.h:50
initialization, evaluation or update
Definition: sc_status.h:57
const int SC_SIM_ERROR
Definition: sc_status.h:45
during start_of_simulation()
Definition: sc_status.h:55
when scheduler stopped by sc_stop()
Definition: sc_status.h:59
after update/notify phase
Definition: sc_status.h:65
const int SC_SIM_OK
Definition: sc_status.h:44
during before_end_of_elaboration()
Definition: sc_status.h:53
const int SC_SIM_USER_STOP
Definition: sc_status.h:46
during end_of_simulation()
Definition: sc_status.h:60
after initialization
Definition: sc_status.h:63
when scheduler stopped by sc_pause()
Definition: sc_status.h:58
during end_of_elaboration()
Definition: sc_status.h:54
before next time step
Definition: sc_status.h:66
#define SC_API
Definition: sc_cmnhdr.h:168