SystemC
3.0.0
Accellera SystemC proof-of-concept library
sysc
kernel
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
34
#include "
sysc/kernel/sc_cmnhdr.h
"
35
36
namespace
sc_core
{
37
38
// simulation status codes
39
40
const
int
SC_SIM_OK
= 0;
41
const
int
SC_SIM_ERROR
= 1;
42
const
int
SC_SIM_USER_STOP
= 2;
43
44
enum
sc_status
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
59
SC_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
sc_cmnhdr.h
SC_API
#define SC_API
Definition:
sc_cmnhdr.h:148
sc_core
Definition:
sc_buffer.h:36
sc_core::SC_SIM_OK
const int SC_SIM_OK
Definition:
sc_status.h:40
sc_core::SC_SIM_USER_STOP
const int SC_SIM_USER_STOP
Definition:
sc_status.h:42
sc_core::SC_SIM_ERROR
const int SC_SIM_ERROR
Definition:
sc_status.h:41
sc_core::operator<<
inline::std::ostream & operator<<(::std::ostream &os, const sc_fifo< T > &a)
Definition:
sc_fifo.h:428
sc_core::sc_status
sc_status
Definition:
sc_status.h:45
sc_core::SC_END_OF_ELABORATION
@ SC_END_OF_ELABORATION
Definition:
sc_status.h:48
sc_core::SC_END_OF_SIMULATION
@ SC_END_OF_SIMULATION
Definition:
sc_status.h:55
sc_core::SC_ELABORATION
@ SC_ELABORATION
Definition:
sc_status.h:46
sc_core::SC_SUSPENDED
@ SC_SUSPENDED
Definition:
sc_status.h:53
sc_core::SC_STOPPED
@ SC_STOPPED
Definition:
sc_status.h:54
sc_core::SC_RUNNING
@ SC_RUNNING
Definition:
sc_status.h:51
sc_core::SC_BEFORE_END_OF_ELABORATION
@ SC_BEFORE_END_OF_ELABORATION
Definition:
sc_status.h:47
sc_core::SC_PAUSED
@ SC_PAUSED
Definition:
sc_status.h:52
sc_core::SC_START_OF_SIMULATION
@ SC_START_OF_SIMULATION
Definition:
sc_status.h:49
Generated on Fri Aug 16 2024 16:36:34 for SystemC by
1.9.4