dol: initial dol commit
[jump.git] / dol / src / dol / visitor / hdsd / scd / fsm / scd_stsw_failed.h
1 #ifndef SCD_STSW_FAILED_H
2 #define SCD_STSW_FAILED_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_failed : public scd_stsw_base
12 {
13 public:
14     scd_stsw_failed(scd_simulator& sim, scd_cont_slave_wrapper& fsm):
15         scd_stsw_base(sim, fsm) { _name = "failed"; }
16     virtual ~scd_stsw_failed() {}
17
18     void set_failed();
19
20     /* scd_cont_fsm_if */
21     void set_fail();
22     bool active() const;
23     bool failed() const;
24 };
25
26 #endif