dol: initial dol commit
[jump.git] / dol / src / dol / visitor / hdsd / scd / fsm / scd_stsw_term_req.h
1 #ifndef SCD_STSW_TERM_REQ_H
2 #define SCD_STSW_TERM_REQ_H
3
4 #include "fsm/scd_stsw_base.h"
5
6
7 /* forward declaration */
8 class scd_cont_slave_wrapper;
9
10
11 class scd_stsw_term_req : public scd_stsw_base
12 {
13 public:
14     scd_stsw_term_req(scd_simulator& sim, scd_cont_slave_wrapper& fsm):
15         scd_stsw_base(sim, fsm) { _name = "term_req"; }
16     virtual ~scd_stsw_term_req() {}
17
18     /* sdc_stsw_base */
19     void recv_term_nack();
20     void recv_term_ack();
21
22     /* scd_cont_wrapper_if */
23     void send_term_nack();
24     bool term_req() const;
25
26     /* scd_cont_fsm_if */
27     void set_busy();
28     void set_idle(const sc_core::sc_time& time);
29     void set_done();
30 };
31
32 #endif