dol: initial dol commit
[jump.git] / dol / src / dol / visitor / hdsd / scd / fsm / scd_cont_wrapper_if.h
1 #ifndef SCD_CONT_WRAPPER_IF_H
2 #define SCD_CONT_WRAPPER_IF_H
3
4 #include "systemc"
5
6
7 /**
8  * Extends the public interface of the slave wrapper FSM.
9  */
10 class scd_cont_wrapper_if
11 {
12 public:
13     /**
14      * Sends a time_req command to the slave.
15      */
16     virtual void send_time_req() = 0;
17
18     /**
19      * Sends a time_nack command to the slave.
20      */
21     virtual void send_time_nack() = 0;
22
23     /**
24      * Sends a time command to the slave.
25      */
26     virtual void send_time(const sc_core::sc_time& time) = 0;
27
28     /**
29      * Sends a term_req command to the slave.
30      */
31     virtual void send_term_req() = 0;
32
33     /**
34      * Sends a term_nack command to the slave.
35      */
36     virtual void send_term_nack() = 0;
37
38     /**
39      * Sends a term command to the slave.
40      */
41     virtual void send_term() = 0;
42
43     /**
44      * Inidcates if the slave is in term_req state.
45      * \return true if the slave seems to be in time_req state
46      */
47     virtual bool time_req() const = 0;
48
49     /**
50      * Inidcates if the slave is in time_ack state.
51      * \return true if the slave seems to be in time_ack state
52      */
53     virtual bool time_ack() const = 0;
54
55     /**
56      * Inidcates if the slave is in term_req state.
57      * \return true if the slave seems to be in term_req state
58      */
59     virtual bool term_req() const = 0;
60
61     /**
62      * Inidcates if the slave is in term_ack state.
63      * \return true if the slave seems to be in term_ack state
64      */
65     virtual bool term_ack() const = 0;
66
67     /**
68      * Inidcates if the slave is in idle state.
69      * \return true if the slave seems to be in idle state
70      */
71     virtual bool idle() const = 0;
72
73     /**
74      * Indicates if the slave is in done state.
75      * \return true if the slave seems to be in done state
76      */
77     virtual bool done() const = 0;
78 };
79
80 #endif