SystemC 3.0.0
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
24 Original Author: Philipp A. Hartmann, OFFIS, 2013-02-15
25
26 CHANGE LOG AT THE END OF THE FILE
27 *****************************************************************************/
28
29#ifndef SC_STATUS_H_INCLUDED_
30#define SC_STATUS_H_INCLUDED_
31
32#include <iosfwd>
33
35
36namespace sc_core {
37
38// simulation status codes
39
40const int SC_SIM_OK = 0;
41const int SC_SIM_ERROR = 1;
42const int SC_SIM_USER_STOP = 2;
43
45{ // sc_get_status values:
46 SC_ELABORATION = 0x001, // during module hierarchy construction
47 SC_BEFORE_END_OF_ELABORATION = 0x002, // during before_end_of_elaboration()
48 SC_END_OF_ELABORATION = 0x004, // during end_of_elaboration()
49 SC_START_OF_SIMULATION = 0x008, // during start_of_simulation()
50
51 SC_RUNNING = 0x010, // initialization, evaluation or update
52 SC_PAUSED = 0x020, // when scheduler stopped by sc_pause()
53 SC_SUSPENDED = 0x040, // when scheduler stopped by sc_suspend_all()
54 SC_STOPPED = 0x080, // when scheduler stopped by sc_stop()
55 SC_END_OF_SIMULATION = 0x100, // during end_of_simulation()
56};
57
58// pretty-printing of sc_status values
59SC_API std::ostream& operator << ( std::ostream&, sc_status );
60
61} // namespace sc_core
62
63/*****************************************************************************
64
65 MODIFICATION LOG - modifiers, enter your name, affiliation, date and
66 changes you are making here.
67
68 Name, Affiliation, Date:
69 Description of Modification:
70
71 *****************************************************************************/
72
73#endif /* SC_STATUS_H_INCLUDED_ */
74// Taf!
75
#define SC_API
Definition: sc_cmnhdr.h:148
const int SC_SIM_OK
Definition: sc_status.h:40
const int SC_SIM_USER_STOP
Definition: sc_status.h:42
const int SC_SIM_ERROR
Definition: sc_status.h:41
inline::std::ostream & operator<<(::std::ostream &os, const sc_fifo< T > &a)
Definition: sc_fifo.h:428
@ SC_END_OF_ELABORATION
Definition: sc_status.h:48
@ SC_END_OF_SIMULATION
Definition: sc_status.h:55
@ SC_ELABORATION
Definition: sc_status.h:46
@ SC_SUSPENDED
Definition: sc_status.h:53
@ SC_STOPPED
Definition: sc_status.h:54
@ SC_RUNNING
Definition: sc_status.h:51
@ SC_BEFORE_END_OF_ELABORATION
Definition: sc_status.h:47
@ SC_PAUSED
Definition: sc_status.h:52
@ SC_START_OF_SIMULATION
Definition: sc_status.h:49