SystemC 3.0.0
Accellera SystemC proof-of-concept library
sc_stage_callback_if.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_stage_callback_if.h -- Definition of the simulation phase callbacks interface
23
24 Original Author: Jerome Cornet, STMicroelectronics, 2021-06-02
25
26 CHANGE LOG AT END OF FILE
27 *****************************************************************************/
28
29#ifndef SC_STAGE_CALLBACK_IF_H_INCLUDED_
30#define SC_STAGE_CALLBACK_IF_H_INCLUDED_
31
33
34namespace sc_core {
35
42 SC_PRE_PAUSE = 0x020,
45 SC_PRE_STOP = 0x100,
47};
48
49// ----------------------------------------------------------------------------
50// CLASS : sc_stage_callback_if
51//
52// Interface defining the method to be called for stage callbacks.
53// ----------------------------------------------------------------------------
54
56{
57public:
58
59 typedef unsigned int stage_cb_mask;
60
62
63 virtual void stage_callback(const sc_stage & stage) = 0;
64
65};
66
67// utility helper to print a simulation stage
68SC_API std::ostream& operator << ( std::ostream& os, sc_stage s );
69
70// ------------------------------------------------------------------
71
72} // namespace sc_core
73
74/*****************************************************************************
75
76 MODIFICATION LOG - modifiers, enter your name, affiliation, date and
77 changes you are making here.
78
79 Name, Affiliation, Date:
80 Description of Modification:
81
82 *****************************************************************************/
83#endif /* SC_STAGE_CALLBACK_IF_H_INCLUDED_ */
84// Taf!
85
#define SC_API
Definition: sc_cmnhdr.h:148
inline::std::ostream & operator<<(::std::ostream &os, const sc_fifo< T > &a)
Definition: sc_fifo.h:428
@ SC_POST_END_OF_ELABORATION
@ SC_POST_BEFORE_END_OF_ELABORATION
@ SC_POST_START_OF_SIMULATION
virtual void stage_callback(const sc_stage &stage)=0